@Test
public void testFailEarlyMode() {

    Validator actual = Validator.builder().failEarly().build();
    try {
        actual.performValidation(ObjectSchemaTest.MULTIPLE_VIOLATIONS_SCHEMA,
                ResourceLoader.DEFAULT.readObj("objecttestcases.json").get("multipleViolations"));
        fail("did not throw exception");
    } catch (ValidationException e) {
        assertEquals("#: required key [boolProp] not found", e.getMessage());
        assertTrue("no causing exceptions", e.getCausingExceptions().isEmpty());
    }
}