TimelineDelegate { public int getCount() { return itemList.size(); } 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 testGetCount() { delegate = new TimelineDelegate<>(mockTimeline); assertEquals(0, delegate.getCount()); delegate = new TimelineDelegate<>(mockTimeline, null, testItems); assertEquals(testItems.size(), delegate.getCount()); }