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

        })
        
        let expectation = expectationWithDescription("wait for response")
        let request = Foo.Endpoint.Get()
        
        Foo.sendRequest(request) { response in
            switch response {
            case .Success(let box):
                assert(box.unbox, ==, dictionary)

                typealias Response = [String: AnyObject]
                
                var URLRequest: NSURLRequest? {
                    return MockAPI.URLRequest(.GET, "/")
                }
                
                func responseFromObject(object: AnyObject) -> Response? {
