 
 (deftest simple-test
   (testing "Simple"
-    (let [s (SimpleGet.)
-          result (.apply s {} (ContextImpl. {} (Logger/getAnonymousLogger)))
+    (let [result (simple_get {} (ContextImpl. {} (Logger/getAnonymousLogger)))
           res-json (.writeValueAsString jackson result)]
       (is (instance? String res-json))
       (is (>= (.indexOf ^String res-json "bools") 0))

    )
  )

(deftest POST_on_PostOrDelete
  (let [pod (PostOrDelete.)
        result (.apply pod {"name" "David" "age" 33}
                       (ContextImpl. {"parameters"     {"path" {"cnt" 3}}
                                      "request-method" "post"}
                                     (Logger/getAnonymousLogger)))
        res-json (.writeValueAsString jackson result)]

    (is (sequential? result))

(ns funcatron.sample.clojure.funcs-test
  (:require [clojure.test :refer :all]
            [funcatron.sample.clojure.funcs :refer :all])
  (:import (funcatron.intf.impl ContextImpl)
           (java.util.logging Logger)
           (com.fasterxml.jackson.databind ObjectMapper)
           (funcatron.intf MetaResponse)))

