CinemaDetailPresenter extends BasePresenter<CinemaDetailPresenter.View> { public void onDestroy(){ useCaseGetCinemaById.dispose(); useCaseGetFavouriteListCinema.dispose(); setView(null); } CinemaDetailPresenter(GetCinemaById useCaseGetCinemaById ,
                                 GetFavouriteListCinema useCaseGetFavouriteListCinema); @Override void initialize(); void setCinemaId(int cinemaId); void onSmallPosterClicked(List<String> posterUrls); void onFABCinemaMenuClicked(); void onForegroundViewClicked(); @SuppressLint("CheckResult") void onAddFavouriteCinemaClicked(); void onShowedDateAndTimePickerDialog(DateAndTimeInfo dateAndTimeInfo); void onDestroy();  }
@Test public void shouldUseCaseDisposeWhenPresenterDestroy(){ presenter.onDestroy(); verify(useCaseGetCinemaByIdMock).dispose(); }