### Question:
JsonUtil { public static Set<ValidationMessage> validate(JsonNode node, String schema) { JsonSchemaFactory factory = JsonSchemaFactory.getInstance(VersionFlag.V201909); return factory.getSchema(schema).validate(node); }  static String stringify(T value); static T fromJsonObject(String jsonString, Class<T> clazz); static List<T> fromJsonArray(String jsonString, 
			Class<T> elementClass); static JsonNode readTree(String jsonString); static T treeToValue(JsonNode node, Class<T> clazz); static Set<ValidationMessage> validate(JsonNode node, String schema);  }### Answer:
@Test public void validate() throws JsonProcessingException { String jsonString = "{\"text\":\"a\"}"; JsonNode rootNode = JsonUtil.readTree(jsonString); Set<ValidationMessage> errors = JsonUtil.validate(rootNode, "{\"properties\":{\"text\": {\"type\": \"string\"}}}"); assertThat(errors).isEmpty(); }