MraidInterstitial extends ResponseBodyInterstitial { @Override public void showInterstitial() { MraidActivity.start(mContext, mAdReport, mHtmlData, mBroadcastIdentifier); }  @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().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); }