MraidInterstitial extends ResponseBodyInterstitial { @Override public void showInterstitial() { MraidActivity.start(mContext, mHtmlData, mAdConfiguration); }  @Override void showInterstitial();  }
@Test public void showInterstitial_shouldStartActivityWithIntent() throws Exception { subject.loadInterstitial(context, customEventInterstitialListener, localExtras, serverExtras); subject.showInterstitial(); ShadowActivity shadowActivity = shadowOf_(context); Intent intent = shadowActivity.getNextStartedActivityForResult().intent; assertThat(intent.getComponent().getPackageName()).isEqualTo("com.mopub.mobileads"); assertThat(intent.getComponent().getClassName()) .isEqualTo("com.mopub.mobileads.MraidActivity"); assertThat(intent.getExtras().get(HTML_RESPONSE_BODY_KEY)).isEqualTo(EXPECTED_HTML_DATA); assertThat(intent.getFlags() & Intent.FLAG_ACTIVITY_NEW_TASK).isNotEqualTo(0); }