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