void () { File dir21 = tempDir.newDirectory("dir1/dir11/dir21"); Map<String, String> macros = Map.of( "$DIR_11$", dir21.getParent(), "$DIR_21$", dir21.getPath(), "$WHATEVER$", "/some_path"); assertComplete("$", new String[]{"$DIR_11$", "$DIR_21$"}, macros, "", "$DIR_11$"); }