private static Iterable<FileStatus> getNonSnapshotFiles(SnapshotFileCache cache, Path storeFile)
    throws IOException {
    return cache.getUnreferencedFiles(
      Arrays.asList(CommonFSUtils.listStatus(fs, storeFile.getParent())), null);
  }
Test that we correctly reload the cache, filter directories, etc.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/snapshot/TestSnapshotFileCache.java