   (core/generate-metadata :collection metadata-format expected-conversion/example-record)
 
   ;; round-trip
-  (xml-round-trip sample-record metadata-format)
+  (collection-xml-round-trip sample-record metadata-format)
 
   ;; generated test case
   (is (= (expected-conversion/convert sample-record metadata-format)
-         (xml-round-trip sample-record metadata-format)))
+         (collection-xml-round-trip sample-record metadata-format)))
 
   ;; for generated test failures
   (is (= (expected-conversion/convert user/failing-value metadata-format)
-         (xml-round-trip user/failing-value metadata-format))))
+         (collection-xml-round-trip user/failing-value metadata-format))))
 
 

    (core/validate-xml concept-type metadata-format metadata-xml)))

(deftest roundrobin-collection-example-record
  (doseq [[origin-format filename] format-examples
          :let [metadata (slurp (io/resource (str "example_data/" filename)))
                umm-c-record (core/parse-metadata :collection origin-format metadata)]
          dest-format destination-formats
          :when (not= origin-format dest-format)]
    (testing (str origin-format " to " dest-format)
      (is (empty? (generate-and-validate-xml umm-c-record dest-format :collection))))))

  [:dif :dif10 :echo10 :iso19115 :iso-smap])

;; TODO add formats here as they are implemented.
(def collection-destination-formats
  "Converting to these formats is tested in the roundrobin test."
  [])

(def collection-format-examples
  "Map of format type to example file"
  {:dif "dif.xml"
   :dif10 "dif10.xml"
