 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; Utilities
 
-(defprotocol EchoReverseService
-  (echo-reverse [this msg]))
-
-; A simple service using authorization via ring middleware
-(defservice
-  echo-reverse-service EchoReverseService
-  [[:AuthorizationService wrap-with-authorization-check]]
-  (echo-reverse
-    [this msg]
-    (let [handler (fn [req]
-                    (-> req
-                        (:body)
-                        str
-                        str/reverse
-                        ((partial str msg))
-                        response
-                        (assoc :request req)))]
-      (wrap-with-authorization-check handler))))
-
 (def minimal-config
   "Minimal config required to bootstrap AuthorizationService with
   EchoReverseService as a dependant consumer.

       (let [svc (get-service app :EchoReverseService)
             echo-handler (echo-reverse svc "Prefix: ")]
         (echo-handler request)))))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Tests

    [clojure.string :as str]
    [puppetlabs.ssl-utils.core :as ssl-utils]
    [puppetlabs.trapperkeeper.app :refer [get-service]]
    [puppetlabs.trapperkeeper.authorization.rules :as rules]
    [puppetlabs.trapperkeeper.authorization.testutils :refer :all]
    [puppetlabs.trapperkeeper.services :refer [defservice]]
    [puppetlabs.trapperkeeper.services.authorization.authorization-service
