### Question:
ThemeResolver { public void applyTheme(Activity activity) { activity.setTheme(resolve(activity.getIntent())); } private  ThemeResolver(
      int defaultTheme, @Nullable String oldestSupportedTheme, boolean useDayNight); static void setDefault(@Nullable ThemeResolver resolver); static ThemeResolver getDefault(); @StyleRes int resolve(Intent intent); @StyleRes int resolve(@Nullable String theme); void applyTheme(Activity activity);  }### Answer:
@Test public void applyTheme_glifV3_shouldSetActivityThemeToGlifV3() { @StyleRes int defaultTheme = 12345; ThemeResolver themeResolver = new ThemeResolver.Builder().setUseDayNight(false).setDefaultTheme(defaultTheme).build(); Activity activity = Robolectric.buildActivity( Activity.class, new Intent() .putExtra(WizardManagerHelper.EXTRA_THEME, WizardManagerHelper.THEME_GLIF_V3)) .setup() .get(); themeResolver.applyTheme(activity); assertThat(shadowOf(activity).callGetThemeResId()).isEqualTo(R.style.SuwThemeGlifV3); }