MoPubInterstitial implements CustomEventInterstitialAdapter.CustomEventInterstitialAdapterListener { public void setLocalExtras(Map<String, Object> extras) { mInterstitialView.setLocalExtras(extras); } 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 setLocalExtrasTest() throws Exception { subject.setInterstitialView(interstitialView); Map<String,Object> localExtras = new HashMap<String, Object>(); localExtras.put("guy", new Activity()); localExtras.put("other guy", new BigDecimal(27f)); subject.setLocalExtras(localExtras); verify(interstitialView).setLocalExtras(eq(localExtras)); }