@Test
public void additionalPropertySchema() {

    String expectedSchemaLocation = "#/bool/location";
    BooleanSchema boolSchema = BooleanSchema.builder().schemaLocation(expectedSchemaLocation).build();
    ObjectSchema subject = buildWithLocation(ObjectSchema.builder()
            .schemaOfAdditionalProperties(boolSchema));
    TestSupport.failureOf(subject)
            .input(OBJECTS.get("additionalPropertySchema"))
            .expectedPointer("#/foo")
            .expectedSchemaLocation(expectedSchemaLocation)
            .expect();
    TestSupport.expectFailure(subject, "#/foo", OBJECTS.get("additionalPropertySchema"));
}