@Test
public void multipleAdditionalProperties() {

    ObjectSchema subject = buildWithLocation(ObjectSchema.builder().additionalProperties(false));
    try {
        subject.validate(new JSONObject("{\"a\":true,\"b\":true}"));
        fail("did not throw exception for multiple additional properties");
    } catch (ValidationException e) {
        assertEquals("#: 2 schema violations found", e.getMessage());
        assertEquals(2, e.getCausingExceptions().size());
    }
}