source: class ObjectSchemaTest {
  
      private static final JSONObject OBJECTS;
      private final ResourceLoader loader;
      public static final Schema MULTIPLE_VIOLATIONS_SCHEMA;
  
      @Test
      public void patternPropertyOverridesAdditionalPropSchema() {
  
target:         ObjectSchema.builder()
                  .schemaOfAdditionalProperties(new NumberSchema())
                  .patternProperty("aa.*", BooleanSchema.INSTANCE)
                  .build().validate(OBJECTS.get("patternPropertyOverridesAdditionalPropSchema"));
      }
  
  }