       app
       [jetty9/jetty9-service test-metric-web-service]
       {:webserver {:port 10000}}
-      (with-open [client (Sync/createClient (doto (ClientOptions.)
-                                              (.setMetricRegistry (MetricRegistry.))
-                                              (.setEnableURLMetrics false)))]
-        (let [request-opts (RequestOptions. hello-url)
-              response (-> client (.get request-opts))]
-          (is (= 200 (.getStatus response)))
-          (let [client-metrics (-> client
-                                   (.getMetricRegistry)
-                                   (Metrics/getClientMetrics))]
-            (is (.isEmpty (.getUrlTimers client-metrics)))
-            (is (.isEmpty (.getUrlAndMethodTimers client-metrics))))))
       (let [metric-registry (MetricRegistry.)
             hello-request-opts (RequestOptions. hello-url)
             short-request-opts (RequestOptions. short-url)

      app
      [jetty9/jetty9-service test-metric-web-service]
      {:webserver {:port 10000}}
      (with-open [client (async/create-client {:metric-registry (MetricRegistry.)
                                               :enable-url-metrics? false})]
        (let [response @(common/get client hello-url)]
          (is (= 200 (:status response)))
          (let [client-metrics (-> client
                                   (common/get-client-metric-registry)
                                   (metrics/get-client-metrics))]
            (is (empty? (:url client-metrics)))
            (is (empty? (:url-and-method client-metrics))))))
      (let [metric-registry (MetricRegistry.)]
        (with-open [client (async/create-client
                            {:metric-registry metric-registry})]

      app
      [jetty9/jetty9-service test-metric-web-service]
      {:webserver {:port 10000}}
      (let [metric-registry (MetricRegistry.)
            hello-request-opts (RequestOptions. hello-url)
            short-request-opts (RequestOptions. short-url)
