ModuleDataExtractor { public List<ServletData> createServletDataList(ServerData data) { Map<String,Servlet> servletMap = module.getServlets(data); return servletMap.entrySet().stream().map( e -> { return new ServletData( e.getValue().getClass().getName(), e.getValue().getClass(), e.getKey()); }).collect(Collectors.toList()); }  LinkedListX getRestResources(ApplicationContext rootContext); List<FilterData> createFilteredDataList(ServerData data); List<ServletData> createServletDataList(ServerData data);  }
@Test public void testCreateServletDataList() { assertThat(extractor.createServletDataList(data).get(0).getMapping(),is("/*1")); }