         waitForExpectations(timeout: 0.2)
     }
 
+    var engine: DiscordEngine!
+    var expectation: XCTestExpectation!
+
+    override func setUp() {
+        engine = DiscordEngine(delegate: self)
+    }
+}
+
+extension TestDiscordEngine : DiscordEngineDelegate {
+    var token: DiscordToken {
+        return "Testing"
+    }
+
     func engine(_ engine: DiscordEngine, didReceiveEvent event: DiscordDispatchEvent,
                 with payload: DiscordGatewayPayload) {
         switch event {

import XCTest
@testable import SwiftDiscord

class TestDiscordEngine : XCTestCase, DiscordEngineDelegate {
    func testEngineCorrectlyHandlesHelloPacket() {
        expectation = expectation(description: "Engine should be connected after receiving hello packet")



        expectation.fulfill()
    }
}
