SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaByQuery.removeActions(); useCaseGetCinemaByQuery.dispose(); setView(null); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); @Override void initialize(); @Override void onDestroy(); void setCinemas(List<Cinema> cinemaList); void onCinemaClicked(int cinemaId , int viewHolderPosition);  }
@Test public void shouldUseCaseDisposeWhenPresenterDestroy(){ presenter.onDestroy(); verify(useCaseGetCinemaByQueryMock).removeActions(); verify(useCaseGetCinemaByQueryMock).dispose(); }