@Override
  public int rename(String oldPath, String newPath, int flags) {
    return AlluxioFuseUtils.call(LOG, () -> renameInternal(oldPath, newPath, flags),
        FuseConstants.FUSE_RENAME, "oldPath=%s,newPath=%s,", oldPath, newPath);
  }
@Test
  public void renameOldNotExist() throws Exception {
    AlluxioURI oldPath = BASE_EXPECTED_URI.join("/old");
    AlluxioURI newPath = BASE_EXPECTED_URI.join("/new");
    doThrow(new FileDoesNotExistException("File /old does not exist"))
        .when(mFileSystem).rename(oldPath, newPath);
    when(mFileSystem.getStatus(any(AlluxioURI.class)))
        .thenThrow(new FileDoesNotExistException("File /old does not exist"));
    assertEquals(-ErrorCodes.ENOENT(), mFuseFs.rename("/old", "/new",
        AlluxioJniRenameUtils.NO_FLAGS));
  }