@Test
public void patternFailure() {

    StringSchema subject = buildWithLocation(StringSchema.builder().pattern("^a*$"));
    TestSupport.failureOf(subject).expectedKeyword("pattern").input("abc").expect();
}