public static void namedActivityPushed(
     final Activity fromActivity, final String nameOfPushedActivity) {
   final ShadowActivity slimtimerShadow = shadowOf(fromActivity);
   final Intent startedIntent = slimtimerShadow.getNextStartedActivity();
   assertNotNull("Intent not started for activity creation?", startedIntent);
   final ShadowIntent shadowIntent = shadowOf(startedIntent);
   assertThat(shadowIntent.getComponent().getClassName(), equalTo(nameOfPushedActivity));
 }
  @Test
  public void testMarketLaunch() {
    ShadowActivity shadowActivity = Robolectric.shadowOf(helloAndroidActivity);
    helloAndroidActivity.launchMarket();
    Intent startedIntent = shadowActivity.getNextStartedActivity();

    Uri marketUri = Uri.parse("market://details?id=com.example");
    assertEquals(marketUri, startedIntent.getData());
  }