public static HttpServer createServer(String host, int port) throws IOException {
    prepareTestWebapp();
    return new HttpServer.Builder().setName(TEST)
      .addEndpoint(URI.create("http://" + host + ":" + port)).setFindPort(true).build();
  }
Create an HttpServer instance on the given address for the given webapp
@param host to bind
@param port to bind
@return the server
@throws IOException if it could not be created
hbase-http/src/test/java/org/apache/hadoop/hbase/http/HttpServerFunctionalTest.java