   (fs/mkdirs (env :archive-spool-dir))
   (fs/mkdirs (env :archive-periodical-spool-dir))
   (fs/mkdirs (env :archive-other-spool-dir))
-  (test-fn)
+  (with-redefs [clojure.java.jdbc/insert! mock-jdbc-insert]
+    (test-fn))
   (fs/delete-dir (env :archive-spool-dir))
   (fs/delete-dir (env :archive-periodical-spool-dir))
   (fs/delete-dir (env :archive-other-spool-dir)))

          iso-name (str dam-number ".iso")
          spool-dir (env :archive-periodical-spool-dir)]
      (archive/archive production)
      (is (fs/exists? (fs/file spool-dir dam-number "produkt" iso-name)))
      (is (fs/exists? (fs/file spool-dir dam-number rdf-name))))))

(deftest periodicals-multiple
  (testing "archiving of periodical multi volume"

          rdf-name (str dam-number ".rdf")
          spool-dir (env :archive-periodical-spool-dir)]
      (archive/archive production)
      (are [file] (fs/exists? file)
           (fs/file spool-dir dam-number "produkt" iso-name)
           (fs/file spool-dir dam-number rdf-name)))))

(deftest other-single
  (testing "archiving of other production single volume"
