   (jetty9/with-test-webserver ring-app-with-auth port
     (let [scripting-container (create-scripting-container port)]
       (testing "no credentials"
-        (.runScriptlet scripting-container "response = c.post('/', 'foo', {})")
-        (is (= "401" (.runScriptlet scripting-container "response.code")))
-        (is (= "access denied" (.runScriptlet scripting-container "response.body"))))
+        (.runScriptlet scripting-container "$response = $c.post('/', 'foo', {})")
+        (is (= "401" (.runScriptlet scripting-container "$response.code")))
+        (is (= "access denied" (.runScriptlet scripting-container "$response.body"))))
 
       (testing "valid credentials"
         (let [auth "{ :basic_auth => { :user => 'foo', :password => 'bar' }}"]
-          (.runScriptlet scripting-container (format "response = c.post('/', 'foo', {}, %s)" auth)))
-        (is (= "200" (.runScriptlet scripting-container "response.code")))
-        (is (= "hi" (.runScriptlet scripting-container "response.body"))))
+          (.runScriptlet scripting-container (format "$response = $c.post('/', 'foo', {}, %s)" auth)))
+        (is (= "200" (.runScriptlet scripting-container "$response.code")))
+        (is (= "hi" (.runScriptlet scripting-container "$response.body"))))
 
       (testing "invalid credentials"
         (let [auth "{ :basic_auth => { :user => 'foo', :password => 'baz' }}"]
-          (.runScriptlet scripting-container (format "response = c.post('/', 'foo', {}, %s)" auth)))
-        (is (= "401" (.runScriptlet scripting-container "response.code")))
-        (is (= "access denied" (.runScriptlet scripting-container "response.body"))))
+          (.runScriptlet scripting-container (format "$response = $c.post('/', 'foo', {}, %s)" auth)))
+        (is (= "401" (.runScriptlet scripting-container "$response.code")))
+        (is (= "access denied" (.runScriptlet scripting-container "$response.body"))))
 
       (terminate-scripting-container scripting-container))))
 

                   :cipher-suites ["SSL_RSA_WITH_RC4_128_MD5"]
                   :use-ssl true})]
          (try
            (.runScriptlet sc (raise-caught-http-error "c.get('/', {})"))
            (is false "Expected HTTP connection to HTTPS port to fail")
            (catch EvalFailedException e
              (is (ssl-connection-exception? (.. e getCause)))))

      (let [sc (create-scripting-container 10080)]
        (logutils/with-test-logging
          (try
            (.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))))))
