                (set (map :name refs))))))))
 
 
-(deftest search-by-cloud-cover
   (let [coll1 (d/ingest "CMR_PROV1" (dc/collection {}))
         coll2 (d/ingest "CMR_PROV2" (dc/collection {}))
         gran1 (d/ingest "CMR_PROV1" (dg/granule coll1 {:cloud-cover 0.8}))

        (is (is (= #{"Granule1" "Granule2" "Granule3"}
                   (set (map :name refs)))))))))

(deftest search-by-dataset-id
  (let [coll1 (d/ingest "CMR_PROV1" (dc/collection {:entry-title "OneCollectionV1"}))
        coll2 (d/ingest "CMR_PROV1" (dc/collection {:entry-title "AnotherCollectionV1"}))
        coll3 (d/ingest "CMR_PROV2" (dc/collection {:entry-title "OneCollectionV1"}))

                 {:entry-title "TestCollection"
                  :granule-ur "sampleur3"}]})

#_(deftest search-by-granule-ur
  (let [coll1 (d/ingest "CMR_PROV1" (dc/collection {}))
        coll2 (d/ingest "CMR_PROV2" (dc/collection {}))
        gran1 (d/ingest "CMR_PROV1" (dg/granule coll1 {:granule-ur "Granule1"}))
