### Question:
WizardManagerHelper { public static Intent getNextIntent(Intent originalIntent, int resultCode) { return getNextIntent(originalIntent, resultCode, null); }  static Intent getNextIntent(Intent originalIntent, int resultCode); static Intent getNextIntent(Intent originalIntent, int resultCode, Intent data); static void copyWizardManagerExtras(Intent srcIntent, Intent dstIntent); static boolean isSetupWizardIntent(Intent intent); static boolean isUserSetupComplete(Context context); static boolean isDeviceProvisioned(Context context); static boolean isDeferredSetupWizard(Intent originalIntent); static boolean isLightTheme(Intent intent, boolean def); static boolean isLightTheme(String theme, boolean def); static @StyleRes int getThemeRes(Intent intent, @StyleRes int defaultTheme); static @StyleRes int getThemeRes(String theme, @StyleRes int defaultTheme); static final String EXTRA_THEME; static final String EXTRA_USE_IMMERSIVE_MODE; static final String SETTINGS_GLOBAL_DEVICE_PROVISIONED; static final String SETTINGS_SECURE_USER_SETUP_COMPLETE; static final String THEME_HOLO; static final String THEME_HOLO_LIGHT; static final String THEME_MATERIAL; static final String THEME_MATERIAL_LIGHT; static final String THEME_GLIF; static final String THEME_GLIF_LIGHT; static final String THEME_GLIF_V2; @Deprecated
    static final String THEME_GLIF_PIXEL; static final String THEME_GLIF_V2_LIGHT; @Deprecated
    static final String THEME_GLIF_PIXEL_LIGHT; }### Answer:
@Test public void testGetNextIntent() { final Intent intent = new Intent("test.intent.ACTION"); intent.putExtra("scriptUri", "android-resource: intent.putExtra("actionId", "test_action_id"); intent.putExtra("theme", "test_theme"); intent.putExtra("ignoreExtra", "poof"); final Intent data = new Intent(); data.putExtra("extraData", "shazam"); final Intent nextIntent = WizardManagerHelper.getNextIntent(intent, Activity.RESULT_OK, data); assertEquals("Next intent action should be NEXT", "com.android.wizard.NEXT", nextIntent.getAction()); assertEquals("Script URI should be the same as original intent", "android-resource: assertEquals("Action ID should be the same as original intent", "test_action_id", nextIntent.getStringExtra("actionId")); assertEquals("Theme extra should be the same as original intent", "test_theme", nextIntent.getStringExtra("theme")); assertFalse("ignoreExtra should not be in nextIntent", nextIntent.hasExtra("ignoreExtra")); assertEquals("Result code extra should be RESULT_OK", Activity.RESULT_OK, nextIntent.getIntExtra("com.android.setupwizard.ResultCode", 0)); assertEquals("Extra data should surface as extra in nextIntent", "shazam", nextIntent.getStringExtra("extraData")); }