DownloadProgressBroadcast { public DownloadProgressBroadcast setProgress(int progress) { this.progress = progress; return this; } DownloadProgressBroadcast(); static Intent createProgressIntent(String torrentFile, int progress); DownloadProgressBroadcast setTorrentFile(String torrentFile); DownloadProgressBroadcast setProgress(int progress); Intent createIntent();  }
@Test public void testSetProgress() { DownloadProgressBroadcast broadcast = new DownloadProgressBroadcast(); assertThat(broadcast.setProgress(42)).isSameAs(broadcast); }