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