DownloadEndBroadcast { public DownloadEndBroadcast setTorrentFile(String torrentFile) { this.torrentFile = torrentFile; return this; } DownloadEndBroadcast(); static Intent createIntent(String torrentFile, int downloadState); DownloadEndBroadcast setTorrentFile(String torrentFile); DownloadEndBroadcast setDownloadState(int downloadState); Intent createIntent();  }
@Test public void testSetTorrentFile() { DownloadEndBroadcast downloadEndBroadcast = new DownloadEndBroadcast(); assertThat(downloadEndBroadcast.setTorrentFile("file")).isSameAs(downloadEndBroadcast); }