                        :steps   [{:stepId    "1"
                                   :state     running-status
                                   :name      "do-stuff"
-                                  :startTime "2016-01-01T12:00:00.000Z"
-                                  :type :step
-                                  :steps []
+                                  :startTime joda-date-12-str
+                                  :type      :step
+                                  :steps     []
                                   :endTime   nil}]}
                       (subject/build-details-from-pipeline foo-pipeline (foo-pipeline-build-state running-status) buildId nil)))))))
   (testing "that it returns build details of a finished step"

            )
  (:import (org.joda.time DateTime DateTimeZone)))

(defn do-stuff [] {})

(def foo-pipeline

    (with-redefs [lambdacd.internal.pipeline-state/get-all (fn [_] {})]
      (let [pipeline {:pipeline-def pipeline-with-substeps}
            build-id "1"
            ws-ch (async/chan 1)]
        (subject/websocket-connection-for-details pipeline build-id (wrap-websocket-channel ws-ch))
        (async/close! ws-ch)

