### Question:
ManagedFileImpl implements ManagedFile { public List<File> listAllFiles() { final Map<String, File> fileMap = new LinkedHashMap<String, File>(); if (envNamedFileInfo != null) { traverseDirectory(envNamedFileInfo, fileMap); } traverseDirectory(fileInfo, fileMap); return getFileList(fileMap); } protected  ManagedFileImpl(String basePath, String relativePath, String env); protected  ManagedFileImpl(ManagedFile parent, String basePath,
            String relativePath, String env); File asFile(); String getRelativePath(); String getName(); boolean delete(); boolean exists(); boolean isDirectory(); ManagedFile getParent(); boolean mkdir(); boolean mkdirs(); boolean createNewFile(); List<ManagedFile> listManagedFiles(); List<ManagedFile> listManagedFiles(FilenameFilter filter); ManagedFile createChild(String childName); List<File> listAllFiles(); boolean hasChild();  }### Answer:
@Test public void testListAllFiles() throws Exception { List<File> list = managedFile.listAllFiles(); assertEquals(3, list.size()); File file = list.get(0); assertEquals("_aaa.txt", file.getName()); assertEquals("v020", file.getParentFile().getParentFile().getName()); file = list.get(1); assertEquals("aaa.txt", file.getName()); assertEquals("v020#ut", file.getParentFile().getParentFile().getName()); file = list.get(2); assertEquals("bbb.txt", file.getName()); assertEquals("v020", file.getParentFile().getParentFile().getName()); }