             [cmr.spatial.mbr :as m]
             [cmr.system-int-test.utils.url-helper :as url]
             [cmr.ingest.services.messages :as msg]
-            [cmr.system-int-test.utils.dev-system-util :as dev-sys-util]))
+            [cmr.system-int-test.utils.dev-system-util :as dev-sys-util]
+            [cmr.common.time-keeper :as tk]
+            [clj-time.format :as tf]
+            [clj-time.core :as t]))
 
 (use-fixtures :each (ingest/reset-fixture {"provguid1" "PROV1" "provguid2" "PROV2"}))
 

  (let [invalid-granule-xml "<Granule>invalid xml</Granule>"
        expected-errors ["Line 1 - cvc-complex-type.2.3: Element 'Granule' cannot have character [children], because the type's content type is element-only."
                         "Line 1 - cvc-complex-type.2.4.b: The content of element 'Granule' is not complete. One of '{GranuleUR}' is expected."]]

    (testing "with collection as additional parameter"
      (let [collection (dc/collection-dif {})


;; TODO uncomment this test when implementing CMR-1239
#_(deftest duplicate-granule-ur-test
    (testing "same granule-ur and native-id across providers is valid"
      (assert-valid
        {}
        {:granule-ur "UR-1" :concept-id "G1-PROV1" :native-id "Native1"})
      (assert-valid
        {}
        {:granule-ur "UR-1" :concept-id "G1-PROV2" :native-id "Native1" :provider-id "PROV2"}))
    (testing "granule-ur must be unique for a provider"
      (assert-conflict
        {:granule-ur "UR-1" :concept-id "G2-PROV1" :native-id "Native2"}
        ["The Granule Ur [UR-1] must be unique. The following concepts with the same entry title were found: [G1-PROV1]."])))
