@Test
public void testDenyIfMultivalued() throws Exception {

    File playground = TestPackageUtil.prepareTestPackageFromFolder("playground.zip",
            new File("src/test/resources/jcr_prop_constraints_playground"));
    TestUtil.testBlock(() -> {
        ProgressCheck check = new JcrProperties().newInstance(obj()
                .key("properties", arr()
                        .val(obj()
                                .key("name", "singleString")
                                .key("denyIfMultivalued", true)
                        )
                )
                .get());
        CheckReport report = scanWithCheck(check, playground);
        // only /apps/acme has the incorrect singleString property
        Assert.assertEquals("one violation: " + report.getViolations(), 1, report.getViolations().size());
    });
}