RepoListPresenter extends BasePresenter { public void clickRepo(Repository repository) { view.startRepoInfoFragment(repository); } @Inject  RepoListPresenter();  RepoListPresenter(RepoListView view); void onSearchButtonClick(); void onCreateView(Bundle savedInstanceState); void onSaveInstanceState(Bundle outState); void clickRepo(Repository repository);  }
@Test public void testClickRepo() { Repository repository = new Repository(TestConst.TEST_REPO, TestConst.TEST_OWNER); repoListPresenter.clickRepo(repository); verify(mockView).startRepoInfoFragment(repository); }