RepositoriesPresenter extends BasePresenter<RepositoriesView> { public void onErrorCancel() { getViewState().hideError(); } RepositoriesPresenter(); void loadNextRepositories(int currentCount); void loadRepositories(boolean isRefreshing); void onErrorCancel();  }
@Test public void repositories_shouldCloseError() { presenter.onErrorCancel(); verify(repositoriesViewState).hideError(); }