 
 @testable import Rocket_Chat
 
-class AuthManagerSpec: XCTestCase {
+class AuthManagerSpec: XCTestCase, AuthManagerInjected {
+
+    var injectionContainer: InjectionContainer!
 
     override func setUp() {
         super.setUp()
+
+        self.injectionContainer = DependencyRepository()
 
         // Clear all the Auth objects in Realm
         Realm.executeOnMainThread({ realm in

            realm.add(auth1)
            realm.add(auth2)

            XCTAssert(AuthManager.isAuthenticated()?.serverURL == auth1.serverURL, "isAuthenticated returns the latests Auth instance")
        })
    }


extension AuthManagerSpec {

    func testIsAuthenticatedUserNotAuthenticated() {
        XCTAssert(authManager.isAuthenticated() == nil, "isAuthenticated returns nil for non authenticated users")
    }

    func testIsAuthenticatedUserAuthenticated() {
