### Question:
DisplayHelperFactory { public static DisplayHelper newDisplayHelper(final Context context) { @SuppressWarnings("deprecation") final int version = Integer.parseInt(Build.VERSION.SDK); if (version >= HONEYCOMB_MR2) { return new DisplayHelperHoneycombMR2(context); } else if (version >= HONEYCOMB) { return new DisplayHelperHoneycomb(context); } else if (version >= FROYO) { return new DisplayHelperFroyo(context); } return new DisplayHelperBase(context); } private  DisplayHelperFactory(); static DisplayHelper newDisplayHelper(final Context context);  }### Answer:
@Ignore("@Config の emulateSdk は coming soon 機能とのことなのでいまはまだ実行しない") @Config(emulateSdk = Build.VERSION_CODES.HONEYCOMB) @Test public void testNewDisplayHelperHONEYCOMB() { final DisplayHelper result = DisplayHelperFactory.newDisplayHelper(Robolectric.application); assertNotNull(result); assertThat(result, instanceOf(DisplayHelperHoneycomb.class)); }
@Ignore("@Config の emulateSdk は coming soon 機能とのことなのでいまはまだ実行しない") @Config(emulateSdk = Build.VERSION_CODES.FROYO) @Test public void testNewDisplayHelperFROYO() { final DisplayHelper result = DisplayHelperFactory.newDisplayHelper(Robolectric.application); assertNotNull(result); assertThat(result, instanceOf(DisplayHelperFroyo.class)); }
@Ignore("@Config の emulateSdk は coming soon 機能とのことなのでいまはまだ実行しない") @Config(emulateSdk = Build.VERSION_CODES.JELLY_BEAN_MR1) @Test public void testNewDisplayHelperJELLY_BEAN_MR1() { final DisplayHelper result = DisplayHelperFactory.newDisplayHelper(Robolectric.application); assertNotNull(result); assertThat(result, instanceOf(DisplayHelperHoneycombMR2.class)); }