    @Test
    public void testAdminLoginError() throws Exception {

        when(mockResolverFactory.getAdministrativeResourceResolver(null)).thenThrow(new LoginException());

        Activator activator = spy(createActivator());
        activator.start(mockConfiguration);

        verify(mockAuthorizable, times(0)).changePassword(anyString());
        verify(mockSession, times(0)).save();
        verify(mockSession, times(0)).logout();
        verifyZeroInteractions(mockResolver);
        verifyZeroInteractions(mockAuthorizable);
        verifyZeroInteractions(mockUserManager);
        verifyZeroInteractions(mockSession);
    }