BaseVideoPlayerActivity extends Activity { static void startVast(final Context context, final VastVideoConfiguration vastVideoConfiguration, final long broadcastIdentifier) { final Intent intentVideoPlayerActivity = createIntentVast(context, vastVideoConfiguration, broadcastIdentifier); try { context.startActivity(intentVideoPlayerActivity); } catch (ActivityNotFoundException e) { MoPubLog.d("Activity MraidVideoPlayerActivity not found. Did you declare it in your AndroidManifest.xml?"); } }  static void startMraid(final Context context, final String videoUrl); static final String VIDEO_URL; }
@Test public void startVast_shouldStartMraidVideoPlayerActivity() throws Exception { startVast(Robolectric.buildActivity(Activity.class).create().get(), vastVideoConfiguration, testBroadcastIdentifier); assertVastVideoPlayerActivityStarted(MraidVideoPlayerActivity.class, vastVideoConfiguration, testBroadcastIdentifier); }