@Test
public void test_index_acl() throws IOException, ConfigurationException {

    try (InputStream input = this.getClass().getResourceAsStream("/oak-index/filter-with-acl.xml")) {
        DefaultWorkspaceFilter filter = new DefaultWorkspaceFilter();
        filter.load(input);
        Assert.assertThat(validator.validate(filter), AnyValidationMessageMatcher.noValidationInCollection());
    }
    Map<String, DocViewProperty> props = new HashMap<>();
    props.put("rep:policy", new DocViewProperty("rep:policy", new String[] { "/home]" }, true, PropertyType.STRING));
    DocViewNode node = new DocViewNode("rep:policy", "rep:policy", null, props, null, "rep:ACL");
    Collection<ValidationMessage> messages = validator.validate(node, "/oak:index/rep:policy",
            Paths.get("_oak_index", "_rep_policy.xml"), true);
    Assert.assertThat(messages, AnyValidationMessageMatcher.noValidationInCollection());
    node = new DocViewNode("allow", "allow", null, props, null, "rep:GrantACE");
    messages = validator.validate(node, "/oak:index/rep:policy/allow",
            Paths.get("_oak_index", "_rep_policy.xml"), false);
    Assert.assertThat(messages, AnyValidationMessageMatcher.noValidationInCollection());
}