private void setupMockTables() throws IOException {
    List<TableDescriptor> tables =
      Arrays.asList(TableDescriptorBuilder.newBuilder(TableName.valueOf("foo")).build(),
        TableDescriptorBuilder.newBuilder(TableName.valueOf("bar")).build());
    Mockito.doReturn(tables).when(admin).listTableDescriptors();
  }
Tests for the master status page and its template.
hbase-server/src/test/java/org/apache/hadoop/hbase/master/http/TestMasterStatusServlet.java