CompanyPresenter extends RxPresenter<CompanyView, ArrayList<Company>> implements Comparator<Company> { @Override void onNext(ArrayList<Company> data) { Collections.sort(data, this); if (isViewAttached()) { getView().showCompanies(data); } }  void loadCompanies(); @Override int compare(Company lhs, Company rhs);  }
@Test public void onNext() throws Exception { presenter.onNext(companyArrayList); verify(view).showCompanies(companyArrayList); }