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

        OpenAPI openAPI = reader.read(Ticket3587Resource.class);
        String yaml = "openapi: 3.0.1\n"
                + "paths:\n"
                + "  /test/test:\n"
                + "    get:\n"
                + "      operationId: parameterExamplesOrderingTest\n"
                + "      parameters:\n"
                + "      - in: query\n"
                + "        schema:\n"
                + "          type: string\n"
                + "        examples:\n"
                + "          Example One:\n"
                + "            description: Example One\n"
                + "          Example Two:\n"
                + "            description: Example Two\n"
                + "          Example Three:\n"
                + "            description: Example Three\n"
                + "      - in: query\n"
                + "        schema:\n"
                + "          type: string\n"
                + "        examples:\n"
                + "          Example Three:\n"
                + "            description: Example Three\n"
                + "          Example Two:\n"
                + "            description: Example Two\n"
                + "          Example One:\n"
                + "            description: Example One\n"
                + "      responses:\n"
                + "        default:\n"
                + "          description: default response\n"
                + "          content:\n"
                + "            '*/*': {}";
        SerializationMatchers.assertEqualsToYamlExact(openAPI, yaml);
    }