@Test
public void maxPropertiesFailure() {

    ObjectSchema subject = buildWithLocation(ObjectSchema.builder().maxProperties(2));
    TestSupport.failureOf(subject)
            .input(OBJECTS.get("maxPropertiesFailure"))
            .expectedPointer("#")
            .expectedKeyword("maxProperties")
            .expect();
}