                 
                 it("should be authenticated") {
                     
-                    let authenticationService = ServiceLocator.service(forType: TwitterAuthenticationService.self)
-                    authenticationService?.stubbed = [authStub]
+                    let authenticationService = ServiceLocator.service(forType: TwitterAuthenticationService.self, stubs: [authStub])
                     authenticationService?.authenticateTwitterClient(completion: { authenticated in
                         expect(authenticated).to(beTrue())
                     })

                    
                    //set ourselves as delegate
                    ServiceLocator.setDelegate(delegate: self)
                    let authenticationService = ServiceLocator.service(forType: TwitterAuthenticationService.self)
                    authenticationService?.stubbed = [logoutStubAuthenticated]
                    authenticationService?.logoutTwitterClient(completion: { loggedOut in
                        expect(loggedOut).to(beFalse())
                        expect(self.delegateGot401).to(beTrue())

        describe("when the current user is NOT authenticated") {
            context("and is trying to logout") {
                it("should not return succesfully") {
                    let authenticationService = ServiceLocator.service(forType: TwitterAuthenticationService.self, stubs: [logoutStubUnauthenticated])
                    authenticationService?.logoutTwitterClient(completion: { loggedOut in
                        expect(loggedOut).to(beFalse())
                    })
