RestControllerProcessor { public Set<String> getExampleClassNames() { return exampleClassNames; } RestControllerProcessor(Log log, Swagger swagger, String restJavaPackage, String tagPatternTemplate, Class<?> modelErrorClass); Set<String> getExampleClassNames();  }
@Test public void test_1() throws Exception { Swagger swagger = new Swagger(); String restJavaPackage = "org.finra.herd.swaggergen.test.restControllerProcessor.case1"; String tagPatternTemplate = "(?<tag>.+?)RestController"; Class<?> modelErrorClass = BasicCase.class; RestControllerProcessor restControllerProcessor = new RestControllerProcessor(LOG, swagger, restJavaPackage, tagPatternTemplate, modelErrorClass); assertEquals(getResourceAsString("/yaml2.yaml"), toYaml(swagger)); Set<String> exampleClassNames = restControllerProcessor.getExampleClassNames(); assertNotNull(exampleClassNames); assertEquals(1, exampleClassNames.size()); assertTrue(exampleClassNames.contains("BasicCase")); }