@BeforeClass
  public static void setupServer() throws Exception {
    Configuration conf = new Configuration();
    setLdapConfigurations(conf);

    server = createTestServer(conf);
    server.addUnprivilegedServlet("echo", "/echo", TestHttpServer.EchoServlet.class);
    server.addJerseyResourcePackage(JerseyResource.class.getPackage().getName(), "/jersey/*");
    server.start();

    baseUrl = getServerURL(server);
    LOG.info("HTTP server started: " + baseUrl);
  }
Sets up the HTTP server with LDAP authentication before any tests are run.
@throws Exception if an error occurs during server setup
hbase-http/src/test/java/org/apache/hadoop/hbase/http/LdapServerTestBase.java