private List<FileStatus> getStoreFilesForSnapshot(SnapshotMock.SnapshotBuilder builder)
    throws IOException {
    final List<FileStatus> allStoreFiles = Lists.newArrayList();
    SnapshotReferenceUtil.visitReferencedFiles(conf, fs, builder.getSnapshotsDir(),
      new SnapshotReferenceUtil.SnapshotVisitor() {
        @Override
        public void storeFile(RegionInfo regionInfo, String familyName,
          SnapshotProtos.SnapshotRegionManifest.StoreFile storeFile) throws IOException {
          FileStatus status = mockStoreFile(storeFile.getName());
          allStoreFiles.add(status);
        }
      });
    return allStoreFiles;
  }
Test that we correctly reload the cache, filter directories, etc.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/snapshot/TestSnapshotFileCache.java