TimelineDelegate { public void notifyDataSetInvalidated() { listAdapterObservable.notifyInvalidated(); } TimelineDelegate(Timeline<T> timeline);   TimelineDelegate(Timeline<T> timeline, DataSetObservable observable, List<T> items); void refresh(Callback<TimelineResult<T>> developerCb); void next(Callback<TimelineResult<T>> developerCb); void previous(); int getCount(); Timeline getTimeline(); T getItem(int position); long getItemId(int position); void setItemById(T item); void registerDataSetObserver(DataSetObserver observer); void unregisterDataSetObserver(DataSetObserver observer); void notifyDataSetChanged(); void notifyDataSetInvalidated();  }
@Test public void testNotifyDataSetInvalidated() { delegate = new TimelineDelegate<>(mockTimeline, mockObservable, null); delegate.notifyDataSetInvalidated(); verify(mockObservable, times(1)).notifyInvalidated(); }