    @Test
    public void migrateAndKeep_foundFirebaseSession() throws JSONException {

        when(mockFirebaseAuth.getCurrentUser()).thenReturn(mockFirebaseUser);

        AuthMigrator authMigrator = new AuthMigrator(mockFirebaseApp, mockStorageHelpers,
                mockFirebaseAuth);
        assertTrue(authMigrator.migrate(false).isSuccessful());
        verify(mockStorageHelpers, times(0)).clearDigitsSession();
        verify(mockFirebaseAuth, times(0)).signInWithCustomToken(any(String.class));
    }