### Question:
FileMapper { public ConcurrentHashMap<String, FileDotIdentifier> map() { search("", ""); return files; } FileMapper(Path baseDir, String qualifier); ConcurrentHashMap<String, FileDotIdentifier> map(); void search(String directoryName, String currentDot);  }### Answer:
@Test public void itShouldMapNestedFolders() { String path = ClassPathUtil.getAbsolutePath("/components"); FileMapper mapper = new FileMapper(Paths.get(path), "component"); ConcurrentHashMap<String, FileDotIdentifier> files = mapper.map(); assertThat(files.size()).isEqualTo(4); }