         })
         
         let expectation = expectationWithDescription("wait for response")
-        let request = Foo.Endpoint.Get()
+        let request = MockAPI.Endpoint.Get()
         
-        Foo.sendRequest(request) { response in
+        MockAPI.sendRequest(request) { response in
             switch response {
             case .Success:
                 XCTFail()

        })
        
        let expectation = expectationWithDescription("wait for response")
        let request = Foo.Endpoint.Get()
        
        Foo.sendRequest(request) { response in
            switch response {
            case .Success:
                XCTFail()

import OHHTTPStubs

class APITests: XCTestCase {
    class MockAPI: API {
        override class func baseURL() -> NSURL {
            return NSURL(string: "https://api.github.com")!
        }
        
        override class func requestBodyBuilder() -> RequestBodyBuilder {
            return .JSON(writingOptions: nil)
        }
