@Test
public void testRenameAcrossFs() throws IOException {

  fc.mkdir(new Path("/newDir/dirFoo"), FileContext.DEFAULT_PERM, true);
  // the root will get interpreted to the root of the chrooted fs.
  fc.rename(new Path("/newDir/dirFoo"), new Path("file:///dirFooBar"));
  FileContextTestHelper.isDir(fc, new Path("/dirFooBar"));
}