UserListPresenter implements Presenter { public void onUserClicked(UserModel userModel) { this.viewListView.viewUser(userModel); }  void setView(UserListView viewListView); void initialize(UserListView userListFragment); void onUserClicked(UserModel userModel); void onViewDestroyed(); static final String TASK_ID_GET_USER_LIST; }
@Test public void testOnUserSelected_shouldShowUserDetails() { userListPresenter.onUserClicked(user); verify(mockUserListView).viewUser(user); }