@Test
  public void testGetMasterInfoPort() throws Exception {
    try (Admin admin = UTIL.getAdmin()) {
      assertEquals(UTIL.getHBaseCluster().getMaster().getInfoServer().getPort(),
        admin.getMasterInfoPort());
    }
  }
Testing, info servers are disabled. This test enables then and checks that they serve pages.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestInfoServers.java