             [cmr.umm-spec.json-schema :as js]
             [clojure.java.io :as io]
             [clj-time.core :as t]
-            [cmr.common.util :as u :refer [are2]]
-            [cmr.umm-spec.umm-json :as umm-json]))
+            [cmr.common.util :as u :refer [are2]]))
 
 (def example-record-echo10-supported
   "This contains an example record will all the fields supported by ECHO10. It supported

  (update-in expected [:EntryId :Id] #(str % "_"
                                           ;; TODO put version here once it's added to UMM.
                                           )))

(comment


  ;; Take a UMM record, convert to UMM JSON, parse UMM JSON, and then convert to ECHO10 XML
  (->>  example-record-echo10-supported
       umm-json/umm->json
       umm-json/json->umm
       (xg/generate-xml xm-echo10/umm-c-to-echo10-xml)
       cmr.common.xml/pretty-print-xml
       println)


  )


(deftest roundtrip-gen-parse
  (are2 [to-xml to-umm expected-manip-fn]

                                                   :DurationUnit "YEAR"
                                                   :DurationValue 4
                                                   :PeriodCycleDurationUnit "DAY"
                                                   :PeriodCycleDurationValue 3}])})]}))

(def example-record
  "This contains an example record with fields supported by all formats"
