BusinessObjectService boSvc = mock(BusinessObjectService.class);
successHandler.setBusinessObjectService(boSvc);
assertEquals("no email attribute has been set in the token", noEmailOrTokenError, successHandler.getActivationMessage());
// add email attribute
OpenIDAttribute emailAttr = new OpenIDAttribute("email", "email_type", values);
attributes.add(emailAttr);
// simulate not finding an entity with the email provided
when(boSvc.findMatching(same(EntityEmailBo.class), anyMapOf(String.class, String.class))).thenReturn(
Collections.<EntityEmailBo> emptyList());
// mock entity info svc to return the mocked entity