@Override
      public Void run() throws Exception {
        // Check the expected content is present in the http response
        Pair<Integer, String> pair = getStacksPage();
        assertEquals(HttpURLConnection.HTTP_OK, pair.getFirst().intValue());
        assertTrue("expected=" + expectedAuthorizedContent + ", content=" + pair.getSecond(),
          pair.getSecond().contains(expectedAuthorizedContent));
        return null;
      }
Helper method to shut down the cluster (if running)
hbase-server/src/test/java/org/apache/hadoop/hbase/http/TestInfoServersACL.java