public HMaster getMaster() {
    return this.hbaseCluster.getActiveMaster();
  }
Returns the current active master, if available.
@return the active HMaster, null if none is active.
hbase-server/src/test/java/org/apache/hadoop/hbase/SingleProcessHBaseCluster.java