public OpenAPI read(Class<?> cls) {
        return read(cls, resolveApplicationPath(), null, false, null, null, new LinkedHashSet<String>(), new ArrayList<Parameter>(), new HashSet<Class<?>>());
    }
@Test(description = "overridden generic resource interface default methods")
    public void testTicket3149() {
        Reader reader = new Reader(new OpenAPI());

        OpenAPI openAPI = reader.read(MainResource.class);
        String yaml = "openapi: 3.0.1\n" +
                "paths:\n" +
                "  /test:\n" +
                "    post:\n" +
                "      tags:\n" +
                "      - Test inheritance on default implementation in interfaces\n" +
                "      operationId: firstEndpoint\n" +
                "      requestBody:\n" +
                "        content:\n" +
                "          '*/*':\n" +
                "            schema:\n" +
                "              $ref: '#/components/schemas/SampleDTO'\n" +
                "      responses:\n" +
                "        \"201\":\n" +
                "          description: Created\n" +
                "        \"400\":\n" +
                "          description: Bad Request\n" +
                "        \"403\":\n" +
                "          description: Forbidden\n" +
                "        \"404\":\n" +
                "          description: Not Found\n" +
                "  /test/{id}:\n" +
                "    get:\n" +
                "      tags:\n" +
                "      - Test inheritance on default implementation in interfaces\n" +
                "      operationId: secondEnpoint\n" +
                "      requestBody:\n" +
                "        content:\n" +
                "          '*/*':\n" +
                "            schema:\n" +
                "              $ref: '#/components/schemas/SampleOtherDTO'\n" +
                "      responses:\n" +
                "        \"200\":\n" +
                "          description: OK\n" +
                "        \"400\":\n" +
                "          description: Bad Request\n" +
                "        \"403\":\n" +
                "          description: Forbidden\n" +
                "        \"404\":\n" +
                "          description: Not Found\n" +
                "  /test/original/{id}:\n" +
                "    get:\n" +
                "      tags:\n" +
                "      - Test inheritance on default implementation in interfaces\n" +
                "      operationId: originalEndpoint\n" +
                "      requestBody:\n" +
                "        content:\n" +
                "          '*/*':\n" +
                "            schema:\n" +
                "              $ref: '#/components/schemas/SampleOtherDTO'\n" +
                "      responses:\n" +
                "        \"200\":\n" +
                "          description: OK\n" +
                "        \"400\":\n" +
                "          description: Bad Request\n" +
                "        \"403\":\n" +
                "          description: Forbidden\n" +
                "        \"404\":\n" +
                "          description: Not Found\n" +
                "components:\n" +
                "  schemas:\n" +
                "    SampleDTO:\n" +
                "      type: object\n" +
                "      properties:\n" +
                "        name:\n" +
                "          type: string\n" +
                "    SampleOtherDTO:\n" +
                "      type: object\n" +
                "      properties:\n" +
                "        label:\n" +
                "          type: string";
        SerializationMatchers.assertEqualsToYaml(openAPI, yaml);
    }