### Question:
OpenapiImporterV30 { public Collection importCollection(String content) throws IOException { SwaggerParseResult res = new OpenAPIV3Parser().readContents(content); OpenAPI spec = res.getOpenAPI(); LinkedList<RequestContainer> requests = new LinkedList<>(); LinkedList<Folder> folders = new LinkedList<>(); String host = spec.getServers().stream().findAny().map(s -> s.getUrl()).orElse("http: spec.getPaths().entrySet().stream() .map(p -> toRequests(host, p.getKey(), p.getValue())) .forEach(requests::addAll); Collection collection = new Collection(UUID.randomUUID().toString(), spec.getInfo().getTitle(), false, requests, folders); return collection; }  Collection importCollection(String content);  }### Answer:
@Test @SneakyThrows void shouldReadSpec(){ OpenapiImporterV30 importer = new OpenapiImporterV30(); String yml = IOUtils.toString(getClass().getResourceAsStream("/openapi-example-v3.yml")); Collection collection = importer.importCollection(yml); assertThat(collection.getName()).isEqualTo("Simple API overview"); RestRequestContainer req1 = (RestRequestContainer) collection.getRequests().get(0); assertThat(req1.getName()).isEqualTo("listVersionsv2"); assertThat(req1.getHttpMethod()).isEqualTo("GET"); assertThat(req1.getUrl()).isEqualTo("http: }