@Test
public void testWithAggregateAtWrongLevel() {

    Map<String, DocViewProperty> props = new HashMap<>();
    props.put("prop1", new DocViewProperty("prop1", new String[] { "value1" } , false, PropertyType.STRING));
    DocViewNode node = new DocViewNode("somename", "somename", null, props, null, "nt:unstructured");
    Collection<ValidationMessage> messages = validator.validate(node, "/apps/test/deep", Paths.get(".content.xml"), false);
    ValidationExecutorTest.assertViolation(messages,
            new ValidationMessage(ValidationMessageSeverity.ERROR, String.format(MergeLimitationsValidator.PACKAGE_NON_ROOT_NODE_MERGED, "/apps/test/deep")));
}