 @testable import Vapor
+import Engine
 import XCTest
 
 class SessionTests: XCTestCase {

            return "hi"
        }

        let request = try Request(method: .get, uri: "cookie")
        request.headers["Cookie"] = "vapor-session=123"
        let response = try drop.respond(to: request)



        XCTAssert(sessionMiddleware?.sessions.contains(identifier: "123") == false, "Session should not contain 123")

        XCTAssert(response.cookies["vapor-session"] != nil, "No cookie was added")
        let id = response.cookies["vapor-session"] ?? ""
        XCTAssert(sessionMiddleware?.sessions.contains(identifier: id) == true, "Session did not contain cookie")
    }
}

