            [-180 90 0 -90] [g2]))))
 
 (deftest search-collection-various-formats
-  (let [ru1 (dc/related-url "GET DATA" "http://example.com")
-        ru2 (dc/related-url "GET DATA" "http://example2.com")
+  (let [ru1 (dc/related-url "GET DATA" "application/json" "http://example.com")
+        ru2 (dc/related-url "GET DATA" "text/xml" "http://example2.com")
         ru3 (dc/related-url "GET RELATED VISUALIZATION" "application/xml" "http://example.com/browse")
         op1 {:swath-width 1450.0
              :period 98.88

        coll4 (d/ingest "PROV1"
                        (dc/collection {:entry-title "Dataset4"}) :iso-smap)
        coll5 (d/ingest "PROV1"
                        (dc/collection {:entry-title "Dataset5"}) :dif)]

    (index/refresh-elastic-index)

    (testing "kml"
      (let [results (search/find-concepts-kml :collection {})]
        (dk/assert-collection-kml-results-match [coll1 coll2 coll3 coll4 coll5] results)))

    (testing "opendata"
      (let [results (search/find-concepts-opendata :collection {})]
        (od/assert-collection-opendata-results-match [coll1 coll2 coll3 coll4 coll5] results))
      (testing "as extension"
        (let [results (search/find-concepts-opendata :collection {} {:url-extension "opendata"})]
          (od/assert-collection-opendata-results-match [coll1 coll2 coll3 coll4 coll5] results)))
      (testing "no opendata support for granules"
        (is (= {:errors ["The mime type [application/opendata+json] is not supported for granules."],
                :status 400}

            {:keys [status results]} response]
        (is (= [200 coll-json] [status results])))

      (let [coll-json (da/collections->expected-atom [coll1 coll2 coll3 coll4 coll5 coll6 coll7
                                                      coll8] "collections.json")
            response (search/find-concepts-json :collection {})
            {:keys [status results]} response]
        (is (= [200 coll-json] [status results])))
