### Question:
ServiceUtils { public static SchemaValidationType getSchemaValidationType(Message message) { SchemaValidationType validationType = getOverrideSchemaValidationType(message); if (validationType == null) { validationType = getSchemaValidationTypeFromModel(message); } if (validationType == null) { Object obj = message.getContextualProperty(Message.SCHEMA_VALIDATION_ENABLED); if (obj != null) { validationType = getSchemaValidationType(obj); } } if (validationType == null) { validationType = SchemaValidationType.NONE; } return validationType; } private  ServiceUtils(); static boolean isSchemaValidationEnabled(SchemaValidationType type, Message message); static SchemaValidationType getSchemaValidationType(Message message); static SchemaValidationType getSchemaValidationType(Object obj); static String makeServiceNameFromClassName(Class<?> clazz); static QName makeQualifiedNameFromClass(Class<?> clazz); static String getMethodName(Method m); static String makeNamespaceFromClassName(String className, String protocol); static String makePackageName(String namespace);  }### Answer:
@Test public void testGetSchemaValidationTypeBoolean() { setupSchemaValidationValue(null, false); assertEquals(SchemaValidationType.NONE, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue("", false); assertEquals(SchemaValidationType.NONE, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue(Boolean.FALSE, false); assertEquals(SchemaValidationType.NONE, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue("false", false); assertEquals(SchemaValidationType.NONE, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue("FALSE", false); assertEquals(SchemaValidationType.NONE, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue("fAlse", false); assertEquals(SchemaValidationType.NONE, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue(Boolean.TRUE, false); assertEquals(SchemaValidationType.BOTH, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue("true", false); assertEquals(SchemaValidationType.BOTH, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue("TRUE", false); assertEquals(SchemaValidationType.BOTH, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue("tRue", false); assertEquals(SchemaValidationType.BOTH, ServiceUtils.getSchemaValidationType(msg)); }
@Test public void testGetSchemaValidationType() { for (SchemaValidationType type : SchemaValidationType.values()) { setupSchemaValidationValue(type.name(), false); assertEquals(type, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue(type.name().toLowerCase(), false); assertEquals(type, ServiceUtils.getSchemaValidationType(msg)); setupSchemaValidationValue(StringUtils.capitalize(type.name()), false); assertEquals(type, ServiceUtils.getSchemaValidationType(msg)); } }