private void validateRootPathCanBeOverridden(String originalPath, String backupId)
    throws IOException {
    String anotherRootDir = "/some/other/root/dir";
    Path anotherPath = new Path(anotherRootDir, backupId);
    BackupManifest.BackupImage differentLocationImage = BackupManifest.hydrateRootDir(
      HBackupFileSystem.getManifest(conf1, new Path(originalPath), backupId).getBackupImage(),
      anotherPath);
    assertEquals(differentLocationImage.getRootDir(), anotherRootDir);
    for (BackupManifest.BackupImage ancestor : differentLocationImage.getAncestors()) {
      assertEquals(anotherRootDir, ancestor.getRootDir());
    }
  }
Check that backup manifest can be produced for a different root. Users may want to move
existing backups to a different location.
hbase-backup/src/test/java/org/apache/hadoop/hbase/backup/TestIncrementalBackup.java