ActorsPresenter extends BasePresenter<ActorsPresenter.View> { public void onActorClicked(int actorId , int viewHolderPosition){ getView().openActor(actorId , viewHolderPosition); } ActorsPresenter(GetActorsByQuery getActorsByQuery); @Override void initialize(); void setActors(List<Actor> actors); void onGetTextFromSearchField(String query); void onActorClicked(int actorId , int viewHolderPosition); void onDestroy();  }
@Test public void shouldOpenActorDetailedScreenWhenActorClicked(){ presenter.setView(view); presenter.onActorClicked(17890 , 3); verify(view , times(1)).openActor(17890 , 3); }