ProfilePresenter extends RxPresenter<ProfileView, Session> { @Override void onError(Throwable e) { if (isViewAttached()) { getView().onError(e.toString()); } }  void attemptLogin(String email, String password); void logOut(String authToken);  }
@Test public void onError() throws Exception { presenter.onError(throwable); verify(view).onError(throwable.toString()); }