private String getHttpUrl() {
    return "http://" + miniHS2.getHost() + ":" + miniHS2.getHttpPort() + "/cliservice/";

  }
Test the connection metrics using an HttpClient, when HS2 is start in http mode.
itests/hive-unit/src/test/java/org/apache/hive/jdbc/miniHS2/TestHs2ConnectionMetricsHttp.java