@ParameterizedTest
    @EnumSource(SchemaVersion.class)
    public void testSetAdditionalProperties_SpecificDefinition(SchemaVersion schemaVersion) {
        SchemaGenerationContextImpl generationContext = this.generateContext(schemaVersion);
        ResolvedType resolvedType = generationContext.getTypeContext().resolve(int.class);
        ObjectNode definition = generationContext.createDefinitionReference(resolvedType);
        this.collector.setAdditionalProperties(this.definitionNode, definition, generationContext);
        Assertions.assertEquals(1, this.definitionNode.size());
        JsonNode additionalPropertiesNode = this.definitionNode.get(SchemaKeyword.TAG_ADDITIONAL_PROPERTIES.forVersion(schemaVersion));
        Assertions.assertNotNull(additionalPropertiesNode);
        Assertions.assertTrue(additionalPropertiesNode.isObject());
    }
Helper method for creating the test context for a given JSON Schema version.

@param schemaVersion designated JSON Schema version
@return schema generation context for the given JSON Schema version
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/AttributeCollectorTest.java