RepositoriesPresenter extends BasePresenter<RepositoriesPresenter.ViewContract> implements Bundleable { public void openRepository(GithubRepo githubRepo) { view.openRepository(githubRepo.getUrl()); } @Inject  RepositoriesPresenter(); boolean didDownloadAll(); List<GithubRepo> getRepositories(); void openRepository(GithubRepo githubRepo); void downloadMore(); @Override Bundle toBundle(); @Override void fromBundle(@Nullable Bundle bundle);  }
@Test public void openRepository() throws Exception { GithubRepo githubRepo = new GithubRepo(); githubRepo.setUrl("blah"); PresenterUtils.setView(repositoriesPresenter, viewContract); repositoriesPresenter.openRepository(githubRepo); Mockito.verify(viewContract).openRepository("blah"); }