                 
             case .Failure(let box):
                 let error = box.unbox
-                assertEqual(error.domain, APIKitErrorDomain)
-                assertEqual(error.code, 400)
+                assertEqual(error.domain, "MockAPIErrorDomain")
+                assertEqual(error.code, 10000)
             }
             
             expectation.fulfill()

        
        override class func responseBodyParser() -> ResponseBodyParser {
            return .JSON(readingOptions: nil)
        }
        
        class Endpoint {

        OHHTTPStubs.stubRequestsPassingTest({ request in
            return true
        }, withStubResponse: { request in
            let data = NSJSONSerialization.dataWithJSONObject([:], options: nil, error: nil)!
            return OHHTTPStubsResponse(data: data, statusCode: 400, headers: nil)
        })
        
        let expectation = expectationWithDescription("wait for response")
