@Test
public void patternPropertyViolation() {

    ObjectSchema subject = ObjectSchema.builder()
            .patternProperty("^b_.*", BooleanSchema.INSTANCE)
            .patternProperty("^s_.*", new StringSchema())
            .build();
    TestSupport.expectFailure(subject, BooleanSchema.INSTANCE, "#/b_1",
            OBJECTS.get("patternPropertyViolation"));
}