ActorsPresenter extends BasePresenter<ActorsPresenter.View> { public void onGetTextFromSearchField(String query) { getActorsByQuery.setQuery(query); } 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 shouldSetQueryWhenPresenterSetQuery(){ presenter.onGetTextFromSearchField("Transformers"); verify(useCaseGetActorsByQueryMock).setQuery("Transformers"); }