@Test
public void test_index_at_deep_path() throws Exception {

    Map<String, DocViewProperty> props = new HashMap<>();
    props.put("includedPaths", new DocViewProperty("includedPaths", new String[] { "/home]" }, true, PropertyType.STRING));
    DocViewNode node = new DocViewNode("indexDef", "indexDef", null, props, null, "oak:QueryIndexDefinition");
    Collection<ValidationMessage> messages = validator.validate(node, "/apps/project/oak:index/indexDef",
            Paths.get("apps", "project", "_oak_index", "content.xml"), false);
    ValidationExecutorTest.assertViolation(messages,
            new ValidationMessage(ValidationMessageSeverity.ERROR,
                    String.format(OakIndexDefinitionValidator.MESSAGE_INDEX_AT_NODE, rootPackagePath, "/apps/project/oak:index/indexDef")));
}