@ParameterizedTest
    @MethodSource("parametersForTestCustomSchemaDefinition_asStrings")
    public void testCustomSchemaDefinition_asStrings(SchemaVersion schemaVersion, EnumModule instance,
            String value1, String value2, String value3) {
        this.initConfigBuilder(schemaVersion);
        instance.applyToConfigBuilder(this.builder);
        ArgumentCaptor<CustomDefinitionProviderV2> captor = ArgumentCaptor.forClass(CustomDefinitionProviderV2.class);
        Mockito.verify(this.typeConfigPart).withCustomDefinitionProvider(captor.capture());

        ResolvedType testEnumType = this.getContext().getTypeContext().resolve(TestEnum.class);
        CustomDefinition schemaDefinition = captor.getValue().provideCustomSchemaDefinition(testEnumType, this.getContext());
        Assertions.assertFalse(schemaDefinition.isMeantToBeInline());
        ObjectNode node = schemaDefinition.getValue();
        Assertions.assertEquals(2, node.size());

        JsonNode typeNode = node.get(SchemaKeyword.TAG_TYPE.forVersion(schemaVersion));
        Assertions.assertEquals(JsonNodeType.STRING, typeNode.getNodeType());
        Assertions.assertEquals(SchemaKeyword.TAG_TYPE_STRING.forVersion(schemaVersion), typeNode.textValue());

        JsonNode enumNode = node.get(SchemaKeyword.TAG_ENUM.forVersion(schemaVersion));
        Assertions.assertEquals(JsonNodeType.ARRAY, enumNode.getNodeType());
        Assertions.assertEquals(3, enumNode.size());
        Assertions.assertEquals(JsonNodeType.STRING, enumNode.get(0).getNodeType());
        Assertions.assertEquals(value1, enumNode.get(0).textValue());
        Assertions.assertEquals(JsonNodeType.STRING, enumNode.get(1).getNodeType());
        Assertions.assertEquals(value2, enumNode.get(1).textValue());
        Assertions.assertEquals(JsonNodeType.STRING, enumNode.get(2).getNodeType());
        Assertions.assertEquals(value3, enumNode.get(2).textValue());
    }
Initialise configuration builder instance for the given JSON Schema version.

@param schemaVersion designated JSON Schema version
jsonschema-generator/src/test/java/com/github/victools/jsonschema/generator/impl/module/EnumModuleTest.java