@Test
  public void testInfoServersRedirect() throws Exception {
    // give the cluster time to start up
    UTIL.getConnection().getTable(TableName.META_TABLE_NAME).close();
    int port = UTIL.getHBaseCluster().getMaster().getInfoServer().getPort();
    assertContainsContent(new URL("http://localhost:" + port + "/index.html"), "master-status");
    port = UTIL.getHBaseCluster().getRegionServerThreads().get(0).getRegionServer().getInfoServer()
      .getPort();
    assertContainsContent(new URL("http://localhost:" + port + "/index.html"), "rs-status");
  }
Ensure when we go to top level index pages that we get redirected to an info-server specific
status page.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestInfoServers.java