       (is (valid-eval-result? out) "(require 'clojure.string) and clojure.string/reverse should be a valid result")
       (is (= 'cljs.user (repl/current-ns)) "(require 'clojure.string) and clojure.string/reverse should not change namespace")
       (is (= "\"tpircserujolc\"" out) "(require 'clojure.string) and clojure.string/reverse should return \"tpircserujolc\"")
-      (repl/reset-env! ['clojure.string])))
+      (repl/reset-env! ['clojure.string]))
+
+    (let [res (do (read-eval-call "(import 'goog.string.StringBuffer)")
+                  (read-eval-call "(let [sb (StringBuffer. \"clojure\")]
+                                     (.append sb \"script\")
+                                     (.toString sb))"))
+          out (unwrap-result res)]
+      (is (success? res) "(import 'goog.string.StringBuffer) and .toString should succeed")
+      (is (valid-eval-result? out) "(import 'goog.string.StringBuffer) and .toString should be a valid result")
+      (is (= 'cljs.user (repl/current-ns)) "(import 'goog.string.StringBuffer) and .toString should not change namespace")
+      (is (= "\"clojurescript\"" out) "(import 'goog.string.StringBuffer) and .toString should return \"clojurescript\"")
+      (repl/reset-env! ['goog.string.StringBuffer])))
 
   (deftest process-reload
     (let [alterable-core-path "dev-resources/private/test/src/cljs/alterable/core.cljs"

      (is (= 'cljs.user (repl/current-ns)) "(require 'foo.bar.baz) and foo.bar.baz/a should not change namespace")
      (is (= "\"whatever\"" out) "(require 'foo.bar.baz) and foo.bar.baz/a should return \"whatever\"")
      (repl/reset-env! ['foo.bar.baz]))
    ;; https://github.com/ScalaConsultants/replumb/issues/39
    (let [res (do (read-eval-call "(require 'foo.bar.baz)")
                  (read-eval-call "foo.bar.baz/const-a"))

      (is (= 'cljs.user (repl/current-ns)) "(require 'foo.bar.baz) and foo.bar.baz/const-a should not change namespace")
      (is (= "1024" out) "(require 'foo.bar.baz) and foo.bar.baz/const-a should return \"1024\"")
      (repl/reset-env! ['foo.bar.baz]))

    ;; AR - Upstream problem (already solved)
    ;; https://github.com/ScalaConsultants/replumb/issues/66
    #_(let [res (do (read-eval-call "(require '[foo.bar.baz :refer [a]])")
                    (read-eval-call "a"))
            out (unwrap-result res)]
