EpisodeListAdapter extends BaseAdapter { @Override public int getCount() { return episodes.size(); } EpisodeListAdapter(List<Episode> episodes, EpisodeViewInflater episodeViewInflater); @Override int getCount(); @Override Episode getItem(int position); @Override long getItemId(int position); @Override View getView(int position, View recycledView, ViewGroup parent);  }
@Test public void itReturnsEpisodesCount() { List<Episode> episodes = asList(new Episode()); EpisodeListAdapter episodeListAdapter = new EpisodeListAdapter(episodes, episodeViewInflater); assertThat(episodeListAdapter.getCount(), is(episodes.size())); }