CustomEventBannerAdapter implements CustomEventBannerListener { @Override public void onBannerClicked() { if (isInvalidated()) return; if (mMoPubView != null) mMoPubView.registerClick(); } CustomEventBannerAdapter(@NonNull MoPubView moPubView,
            @NonNull String className,
            @NonNull Map<String, String> serverExtras,
            long broadcastIdentifier,
            @Nullable AdReport adReport); @Override void onBannerLoaded(View bannerView); @Override void onBannerFailed(MoPubErrorCode errorCode); @Override void onBannerExpanded(); @Override void onBannerCollapsed(); @Override void onBannerClicked(); @Override void onLeaveApplication(); static final int DEFAULT_BANNER_TIMEOUT_DELAY; }
@Test public void onBannerClicked_shouldRegisterClick() throws Exception { subject.onBannerClicked(); verify(moPubView).registerClick(); }