@BeforeClass
  public static void setUpBeforeClass() throws Exception {
    Configuration c = TESTUTIL.getConfiguration();
    // We use local filesystem. Set it so it writes into the testdir.
    CommonFSUtils.setRootDir(c, TESTUTIL.getDataTestDir());
    DefaultMetricsSystem.setMiniClusterMode(true);
    // Startup a mini zk cluster.
    TESTUTIL.startMiniZKCluster();
  }
Standup the master and fake it to test various aspects of master function. Does NOT spin up a
mini hbase nor mini dfs cluster testing master (it does put up a zk cluster but this is usually
pretty fast compared). Also, should be possible to inject faults at points difficult to get at in
cluster context. TODO: Speed up the zk connection by Master. It pauses 5 seconds establishing
session.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterNoCluster.java