HomePresenter extends MvpPresenter<HomeView> { public void onRepositorySelection(int position, Repository repository) { getViewState().showDetailsContainer(); getViewState().setSelection(position); getViewState().showDetails(position, repository); }  void onRepositorySelection(int position, Repository repository);  }
@Test public void details_shouldShowDetailsContainer() { Repository emptyRepository = emptyRepository(); presenter.onRepositorySelection(0, emptyRepository); verify(homeViewState).showDetailsContainer(); verify(homeViewState).showDetails(0, emptyRepository); }