EpisodeDownloader { public boolean isAlreadyDownloaded(Episode episode) { return episodeFile.exists(episode); } @Inject  EpisodeDownloader(FileDownloadManager fileDownloadManager, EpisodeFile episodeFile); void download(Episode episode); boolean isAlreadyDownloaded(Episode episode);  }
@Test public void itDelegatesToEpisodeFileWhenAskedAboutIfDownloadWasAlreadyMade() { episodeDownloader.isAlreadyDownloaded(episode); verify(episodeFileMock).exists(episode); }