public void setZkCluster(MiniZooKeeperCluster zkCluster) {
    this.passedZkCluster = true;
    this.zkCluster = zkCluster;
    conf.setInt(HConstants.ZOOKEEPER_CLIENT_PORT, zkCluster.getClientPort());
  }
Start a mini ZK cluster. If the property "test.hbase.zookeeper.property.clientPort" is set the
port mentioned is used as the default port for ZooKeeper.
hbase-zookeeper/src/test/java/org/apache/hadoop/hbase/HBaseZKTestingUtil.java