CompanyPresenter extends RxPresenter<CompanyView, ArrayList<Company>> implements Comparator<Company> { @Override void onError(Throwable e) { if (isViewAttached()) { getView().onError(e.toString()); } }  void loadCompanies(); @Override int compare(Company lhs, Company rhs);  }
@Test public void testOnError() throws Exception { presenter.onError(throwable); verify(view).onError(throwable.toString()); }