             [clojure.java.io :as io]
             [clojure.pprint :as pp]
             [clojure.data.xml :as xml]
+            [clojure.xml :as x]
             [clojure.zip :as zip]
             [clojure.data.zip.xml :as zx]
             [clojure.java.shell :as shell]
             [edeposit.amqp.kramerius.xml.utils :as u]
             [clojurewerkz.serialism.core :as s]
+            [clj-time.local :as lt]
+            [clj-time.coerce :as tc]
+            [clj-time.core :as t]
             )
   )
 

           tmpdir (fs/temp-dir "test-export-to-kramerius-request-")]
      (h/save-request [[:no-metadata payload] tmpdir])
      (h/prepare-marcxml2mods-request tmpdir)
      (let [ metadata (-> (slurp "resources/marcxml2mods-response-metadata.clj")
                          read-string
                          (update-in [:headers] assoc "UUID" (.toString tmpdir)))
            payload (slurp "resources/marcxml2mods-response-payload.json")
            [mods mods-tmpdir] (-> [metadata payload]
                                    h/save-marcxml2mods-response
                                    h/parse-mods-files

           tmpdir (fs/temp-dir "test-export-to-kramerius-request-")]
      (h/save-request [[:no-metadata payload] tmpdir])
      (h/prepare-marcxml2mods-request tmpdir)
      (let [ metadata (-> (slurp "resources/communication-with-marcxml2mods/response/metadata.clj")
                          read-string
                          (update-in [:headers] assoc "UUID" (.toString tmpdir)))
            payload (slurp "resources/communication-with-marcxml2mods/response/payload.json")
            [mods mods-tmpdir] (-> [metadata payload]
                                    h/save-marcxml2mods-response
                                    h/parse-mods-files
