MoPubInterstitial implements CustomEventInterstitialAdapter.CustomEventInterstitialAdapterListener { public InterstitialAdListener getInterstitialAdListener() { return mInterstitialAdListener; } MoPubInterstitial(Activity activity, String id); void load(); void forceRefresh(); boolean isReady(); boolean show(); void setKeywords(String keywords); String getKeywords(); Activity getActivity(); Location getLocation(); void destroy(); void setInterstitialAdListener(InterstitialAdListener listener); InterstitialAdListener getInterstitialAdListener(); void setTesting(boolean testing); boolean getTesting(); void setLocalExtras(Map<String, Object> extras); Map<String, Object> getLocalExtras(); @Override void onCustomEventInterstitialLoaded(); @Override void onCustomEventInterstitialFailed(MoPubErrorCode errorCode); @Override void onCustomEventInterstitialShown(); @Override void onCustomEventInterstitialClicked(); @Override void onCustomEventInterstitialDismissed(); @Deprecated void setLocationAwareness(LocationAwareness locationAwareness); @Deprecated LocationAwareness getLocationAwareness(); @Deprecated void setLocationPrecision(int precision); @Deprecated int getLocationPrecision(); @Deprecated void setListener(MoPubInterstitialListener listener); @Deprecated MoPubInterstitialListener getListener(); @Deprecated void customEventDidLoadAd(); @Deprecated void customEventDidFailToLoadAd(); @Deprecated void customEventActionWillBegin(); @Deprecated void setFacebookSupported(boolean enabled); @Deprecated boolean isFacebookSupported();  }
@Test public void getInterstitialAdListenerTest() throws Exception { interstitialAdListener = mock(MoPubInterstitial.InterstitialAdListener.class); subject.setInterstitialAdListener(interstitialAdListener); assertThat(subject.getInterstitialAdListener()).isSameAs(interstitialAdListener); }