 
     static var allTests : [(String, (GraphQLMiddlewareTests) -> () throws -> Void)] {
         return [
-            ("testExample", testExample),
+            ("testGraphiQL", testGraphiQL),
+            ("testGraphqlQuery", testGraphqlQuery)
         ]
     }
 }

        doTearDown()
    }

    func testExample() {
        performServerTest(router) { expectation in

            

            self.performRequest("get", path: "/graphql", callback: { response in
                XCTAssertNotNil(response, "Response object was nil")
                //response?.headers[""]
                do {
                    let responseString = try response!.readString()

                    XCTAssertNotNil(responseString)
                } catch {
                    XCTFail("Can't read response body")
                }

                expectation.fulfill()
            })


            self.performRequest("post", path: "/graphql", callback: { response in
                
            })
        }

    }

    static func setupRouter() -> Router {

import Graphiti
import Kitura
import KituraNet
import SwiftyJSON

@testable import GraphQLMiddleware

