Path getFlushedMobFile(FileSystem fs, TableName table) throws IOException {
    Path famDir = MobUtils.getMobFamilyPath(conf, table, FAM_STR);

    // keep doing this until we get a legit hfile
    while (true) {
      FileStatus[] hfFss = fs.listStatus(famDir);
      if (hfFss.length == 0) {
        continue;
      }
      for (FileStatus hfs : hfFss) {
        if (!hfs.isDirectory()) {
          return hfs.getPath();
        }
      }
    }
  }
Gets flushed mob files.
@param fs    The current file system.
@param table The current table name.
@return Path of a flushed hfile.
hbase-server/src/test/java/org/apache/hadoop/hbase/util/BaseTestHBaseFsck.java