public FileSystem getTestFileSystem() throws IOException {
    return HFileSystem.get(conf);
  }
Set the MiniDFSCluster
@param cluster     cluster to use
@param requireDown require the that cluster not be "up" (MiniDFSCluster#isClusterUp) before it
                   is set.
@throws IllegalStateException if the passed cluster is up when it is required to be down
@throws IOException           if the FileSystem could not be set from the passed dfs cluster
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java