ActorDetailPresenter extends BasePresenter<ActorDetailPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaById.dispose(); setView(null); } ActorDetailPresenter(GetActorById useCaseGetCinemaById); @Override void initialize(); @Override void onDestroy(); void setActorId(int actorId); void onAvatarClicked(List<String> posterUrls);  }
@Test public void shouldUseCaseDisposeWhenPresenterDestroy(){ presenter.onDestroy(); verify(useCaseGetActorByIdMock , times(1)).dispose(); }