@Test
public void process_loginException() throws PersistenceException, LoginException {

    when(resolverService.getServiceResourceResolver()).thenThrow(LoginException.class);
    task.process(null, context);
    verify(resolver, never()).commit();
}