PropertyValidator { static Class<?> getType(String typename) { switch (typename) { case "string": return String.class; case "integer": return Integer.class; case "boolean": return Boolean.class; case "double": return Double.class; case "list": return List.class; case "map": return Map.class; default: return Object.class; } } PropertyValidator(List<PropertyValidationRule> validationRules); boolean isValidPropertiesMap(Map<String, Object> properties);  }
@Test void testGetType() { assertAll("Assert equal return value from getType PropertyValidator method.", () -> assertEquals(String.class, PropertyValidator.getType("string")), () -> assertEquals(Integer.class, PropertyValidator.getType("integer")), () -> assertEquals(Boolean.class, PropertyValidator.getType("boolean")), () -> assertEquals(Double.class, PropertyValidator.getType("double")), () -> assertEquals(List.class, PropertyValidator.getType("list")), () -> assertEquals(Map.class, PropertyValidator.getType("map")), () -> assertEquals(Object.class, PropertyValidator.getType("unknown"))); }