@Test
public void propertyDepViolation() {

    ObjectSchema subject = buildWithLocation(
            ObjectSchema.builder()
                    .addPropertySchema("ifPresent", NullSchema.INSTANCE)
                    .addPropertySchema("mustBePresent", BooleanSchema.INSTANCE)
                    .propertyDependency("ifPresent", "mustBePresent")
    );
    TestSupport.failureOf(subject)
            .input(OBJECTS.get("propertyDepViolation"))
            .expectedKeyword("dependencies")
            .expect();
}