/*IdentityService idSvc = mock(IdentityService.class);
when(idSvc.getEntity(entityId)).thenReturn(entity);*/
final String principalName = "marto";
when(entityInfoSvc.getPrincipalName(any(EntityContract.class))).thenReturn(principalName);
ParameterService parameterService = mock(ParameterService.class);
when(parameterService.getParameterValueAsString(
any(String.class), any(String.class), any(String.class))).thenReturn(sendingEmail);
successHandler.setParameterService(parameterService);
String expectedActivationMsg = firstName + ", an activation email has been sent to '" + emailFromOpenId +
"' from address '" + sendingEmail + "'. If none comes to your inbox or spam folder after a few minutes, " +
"please contact support";