@Test
public void itShowsDownloadButtonButtonWhenAudioFileHasNotBeenDownloadedAndLayoutIsNotVisible() {

  Episode episode = new Episode();
  when(episodeDownloaderMock.isAlreadyDownloaded(episode)).thenReturn(true);
  View inflatedView = inflateView(episode);
  ViewGroup invisibleDownloadButtonLayout = (ViewGroup) inflatedView
      .findViewById(R.id.episode_download_layout);
  assertThat(invisibleDownloadButtonLayout.getVisibility(), is(INVISIBLE));
  when(episodeDownloaderMock.isAlreadyDownloaded(episode)).thenReturn(false);
  View recycledView = episodeViewInflater.inflate(inflatedView).with(episode).from(parent);
  ViewGroup visibleDownloadButtonLayout = (ViewGroup) recycledView
      .findViewById(R.id.episode_download_layout);
  assertThat(visibleDownloadButtonLayout.getVisibility(), is(VISIBLE));
}