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