@Test
public void minPropertiesFailure() {

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