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