@Test
  public void testAdminAllowedPrivilegedServletAccess() throws IOException {
    HttpURLConnection conn = openConnection("/jmx", ADMIN_CREDENTIALS);
    assertEquals(HttpURLConnection.HTTP_OK, conn.getResponseCode());
  }
Test class for admin ACLs with LDAP authentication on the HttpServer.
hbase-http/src/test/java/org/apache/hadoop/hbase/http/TestLdapAdminACL.java