* Checks ancestors are created when a junction is created.
*/
public void testAncestors() throws Exception
{
final FileSystem fs = getManager().createVirtualFileSystem("vfs://").getFileSystem();
final FileObject baseDir = getBaseDir();
// Make sure the file at the junction point and its ancestors do not exist
FileObject file = fs.resolveFile("/a/b");
assertFalse(file.exists());
file = file.getParent();
assertFalse(file.exists());
file = file.getParent();
assertFalse(file.exists());
// Add the junction
fs.addJunction("/a/b", baseDir);
// Make sure the file at the junction point and its ancestors exist
file = fs.resolveFile("/a/b");
assertTrue("Does not exist", file.exists());
file = file.getParent();
assertTrue("Does not exist", file.exists());
file = file.getParent();
assertTrue("Does not exist", file.exists());
}