SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void setCinemas(List<Cinema> cinemaList){ cinemas = cinemaList; useCaseGetCinemaByQuery.sortByDate(cinemas); getView().showCinemas(cinemas); getView().hideLoading(); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); @Override void initialize(); @Override void onDestroy(); void setCinemas(List<Cinema> cinemaList); void onCinemaClicked(int cinemaId , int viewHolderPosition);  }
@Test public void shouldSortCinemasByDateWhenSetCinemas(){ presenter.setView(view); presenter.setCinemas(cinemaListMock); verify(view).showCinemas(cinemaListMock); verify(view).hideLoading(); }