private SchemaGenerationContextImpl generateContext(SchemaVersion schemaVersion, Option... options) {
        SchemaGeneratorConfig generatorConfig = new SchemaGeneratorConfigImpl(
                this.objectMapper,
                schemaVersion,
                Stream.of(options).collect(Collectors.toSet()),
                new SchemaGeneratorGeneralConfigPart(),
                new SchemaGeneratorConfigPart<>(),
                new SchemaGeneratorConfigPart<>(),
                Collections.emptyMap());
        return new SchemaGenerationContextImpl(generatorConfig,
                TypeContextFactory.createDefaultTypeContext(Mockito.mock(SchemaGeneratorConfig.class)));
    }
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