BaseVideoPlayerActivity extends Activity { public static void startMraid(final Context context, final String videoUrl) { final Intent intentVideoPlayerActivity = createIntentMraid(context, videoUrl); 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 startMraid_shouldStartMraidVideoPlayerActivity() throws Exception { startMraid(Robolectric.buildActivity(Activity.class).create().get(), MRAID_VIDEO_URL); assertMraidVideoPlayerActivityStarted(MraidVideoPlayerActivity.class, MRAID_VIDEO_URL); }