### Question:
UiRoutesScanner { public List<String> scan(String... locations) throws IOException { List<String> routes = new ArrayList<>(); for (String location : locations) { for (Resource resource : this.resolver.getResources(toPattern(location) + "**/routes.txt")) { if (resource.isReadable()) { routes.addAll(readLines(resource.getInputStream())); } } } return routes; } UiRoutesScanner(ResourcePatternResolver resolver); List<String> scan(String... locations);  }### Answer:
@Test public void should_find_route() throws IOException { List<String> routes = this.scanner.scan("classpath:/META-INF/test-extensions/"); assertThat(routes).containsExactlyInAnyOrder("/custom/**"); }