### Question:
GovCloudFlagUtil { public static Boolean extractGovCloudFlag(Object object) { if (object != null) { if (object instanceof Boolean) { return (Boolean) object; } else if (object instanceof String) { return Boolean.parseBoolean((String) object); } } return Boolean.FALSE; } private  GovCloudFlagUtil(); static Boolean extractGovCloudFlag(Object object); static final String GOV_CLOUD_KEY; }### Answer:
@Test public void testNullObject() { assertFalse(GovCloudFlagUtil.extractGovCloudFlag(null)); }
@Test public void testBooleanObject() { assertFalse(GovCloudFlagUtil.extractGovCloudFlag(false)); assertTrue(GovCloudFlagUtil.extractGovCloudFlag(true)); assertFalse(GovCloudFlagUtil.extractGovCloudFlag(Boolean.FALSE)); assertTrue(GovCloudFlagUtil.extractGovCloudFlag(Boolean.TRUE)); }
@Test public void testStringObject() { assertFalse(GovCloudFlagUtil.extractGovCloudFlag("false")); assertFalse(GovCloudFlagUtil.extractGovCloudFlag("anythingelse")); assertTrue(GovCloudFlagUtil.extractGovCloudFlag("true")); }
@Test public void testDifferentObject() { assertFalse(GovCloudFlagUtil.extractGovCloudFlag(new User())); assertFalse(GovCloudFlagUtil.extractGovCloudFlag(Credential.builder().build())); }