FeedsAdapter extends BaseAdapter { @Override public int getCount() { return feeds.size(); } FeedsAdapter(List<Feed> feeds, LayoutInflater inflater); @Override int getCount(); @Override Feed getItem(int position); @Override long getItemId(int position); @Override View getView(int position, View recycledView, ViewGroup parent);  }
@Test public void itReturnsEpisodesCount() { List<Feed> feeds = givenFeeds(new Feed()); FeedsAdapter feedsAdapter = givenAdapaterWith(feeds); assertThat(feedsAdapter.getCount(), is(feeds.size())); }