@Test
public void shouldListAllViolationsWhenThereIsMoreThanOne() {

    try {
        NumberSchema.builder()
                .multipleOf(10).minimum(10.0).maximum(15.0)
                .build()
                .validate(3);
    } catch (ValidationException ve) {
        assertEquals(2, ve.getViolationCount());
        assertEquals("minimum", ve.getCausingExceptions().get(0).getKeyword());
        assertEquals("multipleOf", ve.getCausingExceptions().get(1).getKeyword());
    }
}