@TargetApi(VERSION_CODES.JELLY_BEAN_MR1)
@Test
public void testIsDeviceProvisioned() {

    Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 1);
    assertTrue(WizardManagerHelper.isDeviceProvisioned(application));
    Settings.Secure.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 0);
    assertFalse(WizardManagerHelper.isDeviceProvisioned(application));
}