@Test
public void requiredProperties() {

    ObjectSchema subject = buildWithLocation(
            ObjectSchema.builder()
                    .addPropertySchema("boolProp", BooleanSchema.INSTANCE)
                    .addPropertySchema("nullProp", NullSchema.INSTANCE)
                    .addRequiredProperty("boolProp")
    );
    TestSupport.failureOf(subject)
            .expectedPointer("#")
            .expectedKeyword("required")
            .input(OBJECTS.get("requiredProperties"))
            .expect();
}