DownloadRequest { public DownloadRequest setDestinationDirectory(Uri destinationDirectory) { this.destinationDirectory = destinationDirectory; return this; } DownloadRequest(); DownloadRequest setTorrentFile(Uri torrentFile); DownloadRequest setDestinationDirectory(Uri destinationDirectory); Intent createIntent(Context context);  }
@Test public void testSetDestinationDirectory() { DownloadRequest downloadRequest = new DownloadRequest(); assertThat(downloadRequest.setDestinationDirectory(Uri.parse("dest"))).isSameAs(downloadRequest); }