     }
     
     func testDispatchAsyncErrorParsingRequest() {
+        requestParser.throwsOnUpdate = true
         let testExpectation = expectation(description: #function)
         requestDispatcher.dispatch(data: Data()) { response in
             switch response {

    }
    
    public func update(with data: Data) throws {
    }
}


private class FakeRequestParser: RequestParser {
    public var json: Any =  [:]
    public var requestType = RequestType.launch
    public var throwsOnUpdate = false

    func parseSession() -> Session? {
        return Session(isNew: false, sessionId: "", application: Application(applicationId: ""), attributes: [:], user: User(userId: ""))
