### Question:
OpenAPIGenerator { public OpenAPI generate() { return generate(OpenApiGeneratorConfigBuilder.defaultConfig().build()); } OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors);  OpenAPIGenerator(List<String> modelPackages, List<String> controllerBasePackages, Info info,
                            List<SchemaInterceptor> schemaInterceptors,
                            List<SchemaFieldInterceptor> schemaFieldInterceptors,
                            List<OperationParameterInterceptor> operationParameterInterceptors,
                            List<OperationInterceptor> operationInterceptors,
                            List<RequestBodyInterceptor> requestBodyInterceptors,
                            OperationFilter operationFilter,
                            OperationParameterFilter operationParameterFilter,
                            SchemaFieldFilter schemaFieldFilter); OpenAPI generate(); OpenAPI generate(OpenApiGeneratorConfig openApiGeneratorConfig); void addSchemaInterceptor(SchemaInterceptor schemaInterceptor); void addSchemaFieldInterceptor(SchemaFieldInterceptor schemaFieldInterceptor); void addOperationParameterInterceptor(OperationParameterInterceptor operationParameterInterceptor); void addOperationInterceptor(OperationInterceptor operationInterceptor); void addRequestBodyInterceptor(RequestBodyInterceptor requestBodyInterceptor); void addGlobalHeader(String name, String description, boolean required); void setOperationFilter(OperationFilter operationFilter); void setOperationParameterFilter(OperationParameterFilter operationParameterFilter); void setSchemaFieldFilter(SchemaFieldFilter schemaFieldFilter); SchemaGeneratorHelper getSchemaGeneratorHelper();  }### Answer:
@Test public void generateStandardScenario() { OpenAPI openAPI = createTestGenerator().generate(); assertOpenApiResult(openAPI, "expected_standard_openapi.json"); }
@Test public void generateExampleScenario() { OpenAPI openAPI = createTestGenerator().generate( OpenApiGeneratorConfigBuilder.defaultConfig() .withGenerateExamples(true) .withOpenApiExampleResolver(createExampleResolver()) .build() ); assertOpenApiResult(openAPI, "expected_example_openapi.json"); }