Map<String, Object> param = new HashMap<String, Object>();
encryCredential.setParameters(param);
EncryCredentialInfo encryCredentialInfo = new EncryCredentialInfo();
encryCredentialInfo.setUserId(userId);
encryCredential.setEncryCredentialInfo(encryCredentialInfo);
Principal principal = this.resolver.resolvePrincipal(encryCredential);
assertNotNull(principal);
assertEquals(userId, principal.getId());
assertEquals(param, principal.getAttributes());
}