System.out.println("Mount is currently not supported on Windows");
return;
}
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());