### Question:
DefaultGenerator implements Generator { public Map<String, List<CodegenOperation>> processPaths(Paths paths) { Map<String, List<CodegenOperation>> ops = new TreeMap<>(); if(paths == null) { return ops; } for (String resourcePath : paths.keySet()) { PathItem path = paths.get(resourcePath); processOperation(resourcePath, "get", path.getGet(), ops, path); processOperation(resourcePath, "head", path.getHead(), ops, path); processOperation(resourcePath, "put", path.getPut(), ops, path); processOperation(resourcePath, "post", path.getPost(), ops, path); processOperation(resourcePath, "delete", path.getDelete(), ops, path); processOperation(resourcePath, "patch", path.getPatch(), ops, path); processOperation(resourcePath, "options", path.getOptions(), ops, path); processOperation(resourcePath, "trace", path.getTrace(), ops, path); } return ops; } DefaultGenerator();  DefaultGenerator(Boolean dryRun); @SuppressWarnings("deprecation") @Override Generator opts(ClientOptInput opts); TemplateProcessor getTemplateProcessor(); @SuppressWarnings("WeakerAccess") void setGenerateMetadata(Boolean generateMetadata); @SuppressWarnings("WeakerAccess") void setGeneratorPropertyDefault(final String key, final String value); @Override List<File> generate(); Map<String, List<CodegenOperation>> processPaths(Paths paths);  }### Answer:
@Test public void testProcessPaths() throws Exception { OpenAPI openAPI = TestUtils.createOpenAPI(); openAPI.setPaths(new Paths()); openAPI.getPaths().addPathItem("/path1", new PathItem().get(new Operation().operationId("op1").responses(new ApiResponses().addApiResponse("201", new ApiResponse().description("OK"))))); openAPI.getPaths().addPathItem("/path2", new PathItem().get(new Operation().operationId("op2").addParametersItem(new QueryParameter().name("p1").schema(new StringSchema())).responses(new ApiResponses().addApiResponse("201", new ApiResponse().description("OK"))))); openAPI.getPaths().addPathItem("/path3", new PathItem().addParametersItem(new QueryParameter().name("p1").schema(new StringSchema())).get(new Operation().operationId("op3").addParametersItem(new QueryParameter().name("p2").schema(new IntegerSchema())).responses(new ApiResponses().addApiResponse("201", new ApiResponse().description("OK"))))); openAPI.getPaths().addPathItem("/path4", new PathItem().addParametersItem(new QueryParameter().name("p1").schema(new StringSchema())).get(new Operation().operationId("op4").responses(new ApiResponses().addApiResponse("201", new ApiResponse().description("OK"))))); ClientOptInput opts = new ClientOptInput(); opts.setOpenAPI(openAPI); opts.setConfig(new DefaultCodegen()); DefaultGenerator generator = new DefaultGenerator(); generator.opts(opts); Map<String, List<CodegenOperation>> result = generator.processPaths(openAPI.getPaths()); Assert.assertEquals(result.size(), 1); List<CodegenOperation> defaultList = result.get("Default"); Assert.assertEquals(defaultList.size(), 4); Assert.assertEquals(defaultList.get(0).path, "/path1"); Assert.assertEquals(defaultList.get(0).allParams.size(), 0); Assert.assertEquals(defaultList.get(1).path, "/path2"); Assert.assertEquals(defaultList.get(1).allParams.size(), 1); Assert.assertEquals(defaultList.get(2).path, "/path3"); Assert.assertEquals(defaultList.get(2).allParams.size(), 2); Assert.assertEquals(defaultList.get(3).path, "/path4"); Assert.assertEquals(defaultList.get(3).allParams.size(), 1); }