@Test
public void testCollectAllMode() {

    Validator actual = Validator.builder().build();
    try {
        actual.performValidation(ObjectSchemaTest.MULTIPLE_VIOLATIONS_SCHEMA,
                ResourceLoader.DEFAULT.readObj("objecttestcases.json").get("multipleViolations"));
        fail("did not throw exception");
    } catch (ValidationException e) {
        assertEquals("#: 3 schema violations found", e.getMessage());
        assertEquals(3, e.getCausingExceptions().size());
    }
}