@Test
  public void test() {
    assertTrue(testUtil.getMiniHBaseCluster().getRegionServer(0).getMasterAddressTracker()
      .getMasterInfoPort() > 0);
  }
Trivial test to confirm that we do not get 0 infoPort. See HBASE-12863.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestGetInfoPort.java