@ParameterizedTest
    @EnumSource(SchemaVersion.class)
    public void testSetEnum_singleConstValue(SchemaVersion schemaVersion) {
        this.collector.setEnum(this.definitionNode, Collections.singletonList("A"), this.generateContext(schemaVersion));
        JsonNode constNode = this.definitionNode.get(SchemaKeyword.TAG_CONST.forVersion(schemaVersion));
        Assertions.assertNotNull(constNode);
        Assertions.assertTrue(constNode.isTextual());
        Assertions.assertEquals("A", constNode.textValue());
    }
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