       (testing "GET /ctia/:observable_type/:observable_value/verdict"
         (let [{status :status
                verdict :parsed-body}
-              (get "ctia/ip/10.0.0.2/verdict"
+              (get (str "ctia/" type "/" value "/verdict")
                    :headers {"api_key" "45c1f5e3f05d0"})]
           (is (= 200 status))
           (is (= (:id judgement)
-                 (:judgement_id verdict))))))))
+                 (:judgement_id verdict)))))))
+
+  (testing ":start_time and :end_time are both in the future"
+    (let [format (partial format/unparse (format/formatters :date-time))
+
+          {:keys [type value]
+           :as observable}
+          {:type "ip"
+           :value "10.0.0.3"}
+
+          {status :status
+           judgement :parsed-body}
+          (post "ctia/judgement"
+                :body {:valid_time {:start_time (-> (clj-time/now)
+                                                    (clj-time/plus
+                                                     (clj-time/minutes 1))
+                                                    format)
+                                    :end_time (-> (clj-time/now)
+                                                  (clj-time/plus
+                                                   (clj-time/minutes 2))
+                                                  format)}
+                       :observable observable
+                       :reason_uri "https://example.com/",
+                       :source "Example",
+                       :external_ids ["judgement-4"],
+                       :disposition 2,
+                       :disposition_name "Malicious"
+                       :reason "Example judgement",
+                       :source_uri "https://example.com/",
+                       :priority 0,
+                       :severity "None",
+                       :tlp "green",
+                       :confidence "None"}
+                :headers {"api_key" "45c1f5e3f05d0"})]
+      (is (= 201 status))
+
+      (testing "GET /ctia/:observable_type/:observable_value/verdict"
+        (let [{status :status
+               verdict :parsed-body}
+              (get (str "ctia/" type "/" value "/verdict")
+                   :headers {"api_key" "45c1f5e3f05d0"})]
+          (is (= 404 status)))))))

                                                    time/format-date-time)
                                    :end_time (-> (time/plus-n :weeks (time/now) 2)
                                                  time/format-date-time)}
                       :observable {:value sha,
                                    :type "sha256"}
                       :reason_uri "https://example.com/",
                       :source "Example",
                       :external_ids ["judgement-1"],

  (testing ":end_time is today, but in the future"
    (let [format (partial format/unparse (format/formatters :date-time))

          {:keys [type value]
           :as observable}
          {:type "ip"
           :value "10.0.0.2"}

          {status :status
           judgement :parsed-body}
          (post "ctia/judgement"
