### Question:
SwaggerToOpenApiConversionUtils { public static String getOpenApiFromSwaggerLoc(String loc) { return getOpenApiFromSwaggerLoc(loc, null); } private  SwaggerToOpenApiConversionUtils(); static String getOpenApiFromSwaggerLoc(String loc); static String getOpenApiFromSwaggerLoc(String loc, OpenApiConfiguration cfg); static String getOpenApiFromSwaggerLoc(String loc, OpenApiConfiguration cfg, Bus bus); static String getOpenApiFromSwaggerStream(InputStream is); static String getOpenApiFromSwaggerStream(InputStream is, OpenApiConfiguration cfg); static String getOpenApiFromSwaggerJson(String json); static String getOpenApiFromSwaggerJson(
            MessageContext ctx, String json, OpenApiConfiguration cfg);  }### Answer:
@Test public void testConvertFromSwaggerToOpenApi() { OpenApiConfiguration cfg = new OpenApiConfiguration(); String s = SwaggerToOpenApiConversionUtils.getOpenApiFromSwaggerLoc("/swagger2petShop.json"); JsonMapObjectReaderWriter readerWriter = new JsonMapObjectReaderWriter(); JsonMapObject sw3 = readerWriter.fromJsonToJsonObject(s); assertEquals("3.0.0", sw3.getStringProperty("openapi")); verifyServersProperty(sw3); verifyInfoProperty(sw3); verifyTagsProperty(sw3); verifyPathsProperty(sw3, cfg); verifyComponentsProperty(sw3, cfg); }
@Test public void testConvertFromSwaggerToOpenApiWithRequestBodies() { OpenApiConfiguration cfg = new OpenApiConfiguration(); cfg.setCreateRequestBodies(true); String s = SwaggerToOpenApiConversionUtils.getOpenApiFromSwaggerLoc("/swagger2petShop.json", cfg); JsonMapObjectReaderWriter readerWriter = new JsonMapObjectReaderWriter(); JsonMapObject sw3 = readerWriter.fromJsonToJsonObject(s); assertEquals("3.0.0", sw3.getStringProperty("openapi")); verifyServersProperty(sw3); verifyInfoProperty(sw3); verifyTagsProperty(sw3); verifyPathsProperty(sw3, cfg); verifyComponentsProperty(sw3, cfg); }