@Test
public void formatFailure() {

    StringSchema subject = buildWithLocation(StringSchema.builder()
            .formatValidator(subj -> Optional.of("violation")));
    TestSupport.failureOf(subject)
            .expectedKeyword("format")
            .input("string")
            .expect();
}