         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)
-                    authenticationService?.stubbed = [logoutStubUnauthenticated]
+                    let authenticationService = ServiceLocator.service(forType: TwitterAuthenticationService.self, stubs: [logoutStubUnauthenticated])
                     authenticationService?.logoutTwitterClient(completion: { loggedOut in
                         expect(loggedOut).to(beFalse())
                     })

        let logoutStubUnauthenticated = ServiceStub(execute: ServiceStubRequest(path: "/oauth2/invalidate_token"),
                                                    with: .failure(code:401, response:[:]), when: .unauthenticated)
        let logoutStubAuthenticated = ServiceStub(execute: ServiceStubRequest(path: "/oauth2/invalidate_token"),
                                                  with: .failure(code:401, response:[:]), when: .authenticated)
        
        beforeEach {
            ServiceLocator.defaultNetworkClientType = StubNetworkManager.self            

        describe("when the current user is already authenticated") {
            context("and is trying to logout") {
                it("should clear token data") {
                    let authenticationService = ServiceLocator.service(forType: TwitterAuthenticationService.self, stubs: [logoutStub])
                    authenticationService?.logoutTwitterClient(completion: { loggedOut in
                        expect(loggedOut).to(beTrue())
                    })
