private static List<String> convertToString(List<FileStatus> files) {
    List<String> originalFileNames = new ArrayList<>(files.size());
    for (FileStatus f : files) {
      originalFileNames.add(f.getPath().getName());
    }
    return originalFileNames;
  }
Returns &lt;expected, gotten, backup&gt;, where each is sorted
hbase-server/src/test/java/org/apache/hadoop/hbase/util/HFileArchiveTestingUtil.java