OpenAPI loadOpenApiModel(String apiDoc) throws Exception {
        final OpenAPIV3Parser openApiParser = new OpenAPIV3Parser();
        final SwaggerParseResult openApi = openApiParser.readLocation(apiDoc, null, null);

        if (openApi != null && openApi.getOpenAPI() != null) {
            return openApi.getOpenAPI();
        }

        // In theory there should be a message in the parse result but it has disappeared...
        throw new IllegalArgumentException(
                "The given OpenApi specification could not be loaded from `" + apiDoc + "`.");

    }
@Test
    public void shouldLoadOpenApiPetStoreModelV3() throws Exception {
        OpenApiRestProducerFactory factory = new OpenApiRestProducerFactory();

        assertNotNull(factory.loadOpenApiModel("petstore-v3.json"));
    }