@Test
public void multipleViolations() {

    try {
        StringSchema.builder().minLength(3).maxLength(1).pattern("^b.*").build().validate("ab");
        Assert.fail();
    } catch (ValidationException e) {
        Assert.assertEquals(3, e.getCausingExceptions().size());
    }
}