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