   nil [n]
   (-> (ruby) (.getNil)))
 
+(def sample-objectid-string "4ee6911fe4b05e6a4d3605fe")
+
 (fact "conversions work"
   (->ruby nil) => (eval "nil")
   (->ruby "a string") => (eval "'a string'")

  (org.jruby.RubyString/newString (ruby) s))

(defmethod ->ruby
  java.lang.Float [n]
  (org.jruby.RubyFloat. (ruby) n))


  (->ruby [5 6 7]) => (eval "[5, 6, 7]")
  (->ruby {5 6}) => (eval "{5 => 6}")
  (class (eval ":foo")) => org.jruby.RubySymbol
  (->ruby (org.bson.types.ObjectId. sample-objectid-string)) => (eval (format "BSON::ObjectId::from_string '%s'" sample-objectid-string))

  ;; complex nested structures
  (->ruby [:foo "bar" 5 nil]) => (eval "[:foo, 'bar', 5, nil]")
