public void restoreCluster() throws IOException {
    if (isDistributedCluster()) {
      getHBaseClusterInterface().restoreInitialStatus();
    } else {
      try {
        shutdownMiniCluster();
      } catch (Exception e) {
        // re-wrap into IOException
        throw new IOException(e);
      }
    }
  }
Restores the cluster to the initial state if it is a distributed cluster, otherwise, shutdowns
the mini cluster.
hbase-it/src/test/java/org/apache/hadoop/hbase/IntegrationTestingUtility.java