SearchUserPresenter implements Presenter<SearchUserView> { public void onUserClick(String username) { searchUserView.startUserDetailsActivity(username); } @Inject  SearchUserPresenter(@Named("searchUser") UseCase searchUserUseCase); @Override void attachView(SearchUserView searchUserView); void loadUsers(String username); void onUserClick(String username); @Override void detachView(); @Override void destroy(boolean unsubscribe);  }
@Test public void onUserClickShouldStartDetailsActivity() { searchUserPresenter.onUserClick(MockFactory.TEST_USERNAME); verify(searchUserView).startUserDetailsActivity(MockFactory.TEST_USERNAME); }