PathTranslator trans = new PathTranslator();
trans.mount("/opt", new File("./target/test-classes/global"));
trans.mount("/usr/local/lib", new File("./target"));
File realFile = new File("./target/test-classes/global/foo.txt");
File globalFile = trans.translate("/opt/foo.txt");
assertTrue(globalFile.exists());
assertEquals(realFile.getCanonicalPath(), globalFile.getCanonicalPath());
realFile = new File("./target/test-classes/logback.xml");
globalFile = trans.translate("/usr/local/lib/test-classes/logback.xml");