public OpenAPI read(Class<?> cls) {
        return read(cls, resolveApplicationPath(), null, false, null, null, new LinkedHashSet<String>(), new ArrayList<Parameter>(), new HashSet<Class<?>>());
    }
@Test
    public void test4412PathWildcards() {
        Reader reader = new Reader(new OpenAPI());

        OpenAPI openAPI = reader.read(Ticket4412Resource.class);
        String yaml = "openapi: 3.0.1\n" +
                "paths:\n" +
                "  /test/sws/{var}:\n" +
                "    get:\n" +
                "      operationId: getCart\n" +
                "      parameters:\n" +
                "      - name: var\n" +
                "        in: path\n" +
                "        required: true\n" +
                "        schema:\n" +
                "          pattern: .*\n" +
                "          type: string\n" +
                "      responses:\n" +
                "        default:\n" +
                "          description: default response\n" +
                "          content:\n" +
                "            text/xml:\n" +
                "              schema:\n" +
                "                type: array\n" +
                "                items:\n" +
                "                  type: string";
        SerializationMatchers.assertEqualsToYaml(openAPI, yaml);
    }