@ParameterizedTest
    @ValueSource(strings = {"default", "ENUM_KEYWORD_FOR_SINGLE_VALUES"})
    public void testSetEnum_twoEnumValues(String optionMode) {
        Option[] options = optionMode.equals("default") ? new Option[0] : new Option[]{Option.ENUM_KEYWORD_FOR_SINGLE_VALUES};
        this.collector.setEnum(this.definitionNode, Arrays.asList("A", "B"), this.generateContext(SchemaVersion.DRAFT_2019_09, options));
        JsonNode enumNode = this.definitionNode.get(SchemaKeyword.TAG_ENUM.forVersion(SchemaVersion.DRAFT_2019_09));
        Assertions.assertNotNull(enumNode);
        Assertions.assertTrue(enumNode.isArray());
        Assertions.assertEquals(2, enumNode.size());
        JsonNode firstValueItem = enumNode.get(0);
        Assertions.assertNotNull(firstValueItem);
        Assertions.assertTrue(firstValueItem.isTextual());
        Assertions.assertEquals("A", firstValueItem.textValue());
        JsonNode secondValueItem = enumNode.get(1);
        Assertions.assertNotNull(secondValueItem);
        Assertions.assertTrue(secondValueItem.isTextual());
        Assertions.assertEquals("B", secondValueItem.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