       (let [sc (create-scripting-container 10080)]
         (logutils/with-test-logging
           (try
-            (.runScriptlet sc (raise-caught-http-error "c.get('/', {})"))
+            (.runScriptlet sc (raise-caught-http-error "$c.get('/', {})"))
             (is false "Expected HTTP connection to HTTPS port to fail")
            (catch EvalFailedException e
              (is (instance? ConnectionClosedException (.getCause e))))))

                  10080
                  {:ssl-protocols ["SSLv3" "TLSv1"]
                   :use-ssl true})]
          (.runScriptlet sc "response = c.get('/', {})")
          (is (= "200" (.runScriptlet sc "response.code")))
          (is (= "hi" (.runScriptlet sc "response.body")))
          (terminate-scripting-container sc))))))

(deftest https-cipher-suites

    (logutils/with-test-logging
      (jetty9/with-test-webserver ring-app-connection-closed port
        (let [sc (create-scripting-container port)]
          (is (= "The Connection header has value close" (.runScriptlet sc "$c.get('/', {}).body")))
          (terminate-scripting-container sc)))))
  (testing "connection header always set to close on post"
    (logutils/with-test-logging
      (jetty9/with-test-webserver ring-app-connection-closed port
        (let [sc (create-scripting-container port)]
          (is (= "The Connection header has value close" (.runScriptlet sc "$c.post('/', 'foo', {}).body")))
          (terminate-scripting-container sc)))))
  (testing "client's terminate function closes the client"
    (logutils/with-test-logging
      (jetty9/with-test-webserver ring-app-connection-closed port
        (let [sc (create-scripting-container port)]
          (.runScriptlet sc "$response = $c.get('/', {})")
          (is (= "200" (.runScriptlet sc "$response.code")))
          (.runScriptlet sc "$c.class.terminate")
          (try
            (.runScriptlet sc "$response = $c.get('/', {})")
            (catch EvalFailedException e
              (let [wrapped-exception (.getCause e)
                    message           (.getMessage e)]
