}});
Resource resourceGrandChild = rr.create(resourceChild, "grandChild1", new HashMap<String, Object>(){{
put(JcrConstants.JCR_PRIMARYTYPE, JcrConstants.NT_UNSTRUCTURED);
}});
rr.commit();
}
ValidationModel vm = validationService.getValidationModel("sling/validation/test", "/apps/validation/1/resource");
ValidationResult vr = validationService.validate(testResource, vm);
assertFalse(vr.isValid());
assertTrue(vr.getFailureMessages().containsKey("child1/hello"));