ListingActivity extends ViperButterKnifeActivity<ListingContract.View, ListingContract.Presenter> implements ListingContract.View, UserAdapter.UserClickListener { @Override public void onUserClick(User user) { getPresenter().onItemClicked(user); }  static void start(Activity activity, String avatarUrl, ImageView avatarImageView); @Override void setUserList(List<User> userList); @Override void onUserClick(User user); @Override void showError(Throwable throwable); @Override void showLoading(); @Override void showContent(); @NonNull @Override ListingContract.Presenter createPresenter(); static final String PHOTO_URL_EXTRA_STRING; }
@Test public void testActivity() throws Exception { User user = new User(); mListingActivity.onUserClick(user); Mockito.verify(mListingPresenter).onItemClicked(user); }