@Test
  public void testStatusTemplateWithServers() throws IOException {
    setupMockTables();

    List<ServerName> servers = Lists.newArrayList(ServerName.valueOf("rootserver,123,12345"),
      ServerName.valueOf("metaserver,123,12345"));
    Set<ServerName> deadServers =
      new HashSet<>(Lists.newArrayList(ServerName.valueOf("badserver,123,12345"),
        ServerName.valueOf("uglyserver,123,12345")));

    new MasterStatusTmpl().setMetaLocation(ServerName.valueOf("metaserver,123,12345"))
      .setServers(servers).setDeadServers(deadServers).render(new StringWriter(), master);
  }
Tests for the master status page and its template.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/http/TestMasterStatusServlet.java