@Test(timeout = 30000)
public void testRenameSnapshot() throws Exception {

  Path snapRootPath = new Path("/snapPath");
  Path chRootedSnapRootPath = new Path(
      Path.getPathWithoutSchemeAndAuthority(chrootedTo), "snapPath");
  AbstractFileSystem baseFs = Mockito.spy(fc.getDefaultFileSystem());
  ChRootedFs chRootedFs = new ChRootedFs(baseFs, chrootedTo);
  Mockito.doNothing().when(baseFs)
      .renameSnapshot(chRootedSnapRootPath, "snapOldName", "snapNewName");
  chRootedFs.renameSnapshot(snapRootPath, "snapOldName", "snapNewName");
  Mockito.verify(baseFs).renameSnapshot(chRootedSnapRootPath, "snapOldName",
      "snapNewName");
}