@Before
  public void setUp() throws Exception {
    testUtil = new HBaseTestingUtil();
    testUtil.startMiniDFSCluster(1);
    testUtil.startMiniZKCluster(1);
    testUtil.createRootDir(); // manually setup hbase dir to point to minidfscluster
    cluster = new LocalHBaseCluster(testUtil.getConfiguration(), 0, 0);
  }
Tests the boot order indifference between regionserver and master
hbase-server/src/test/java/org/apache/hadoop/hbase/TestClusterBootOrder.java