@Test
    public void testRawEnumType_asObject() throws JSONException {
        this.initConfigBuilder(SchemaVersion.DRAFT_2020_12);
        this.builder.with(Option.PUBLIC_NONSTATIC_FIELDS, Option.NONSTATIC_NONVOID_NONGETTER_METHODS);
        instanceAsObjects.applyToConfigBuilder(this.builder);

        JsonNode enumSchema = new SchemaGenerator(this.builder.build()).generateSchema(TestType.class)
                .get(SchemaKeyword.TAG_PROPERTIES.forVersion(SchemaVersion.DRAFT_2020_12))
                .get("rawEnum");
        JSONAssert.assertEquals("{\"type\":\"object\",\"properties\":{\"compareTo(Enum<Object>)\":{\"type\":\"integer\"},\"name()\":{\"type\":\"string\"}}}",
                enumSchema.toString(), JSONCompareMode.STRICT);
    }
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