     extension JeevesTests: XCTestCaseProvider {
         var allTests : [(String, () throws -> Void)] {
             return [
-                       ("testRequestHeader", testRequestHeader)
+                       ("testReadHeader", testReadHeader),
+                       ("testReadRequest", testReadRequest)
             ]
         }
     }


class JeevesTests: XCTestCase {

    func testRequestHeader() throws {
        print("Tested")
        let socket = TestSocket()
        let header = try Request.Header(socket)


        XCTAssert(fields["Connection"] == "close")
        XCTAssert(fields["Host"] == "localhost:8080")
    }
    
    func testReadRequest() throws {
        let socket = TestSocket()
        let request = try socket.readRequest()
        XCTAssert(request.data["hello"]?.string == "world")
    }
}
