kryo.register(CasProfile.class);
}
@Override
protected void verifyProfile(final UserProfile userProfile) {
final CasProfile profile = (CasProfile) userProfile;
logger.debug("userProfile : {}", profile);
assertEquals(USERNAME, profile.getId());
assertEquals(CasProfile.class.getSimpleName() + UserProfile.SEPARATOR + USERNAME, profile.getTypedId());
assertTrue(ProfileHelper.isTypedIdOf(profile.getTypedId(), CasProfile.class));
if (getCasProtocol() == CasProtocol.SAML) {
assertEquals("uid", profile.getAttribute("uid"));
assertEquals("eduPersonAffiliation", profile.getAttribute("eduPersonAffiliation"));
assertEquals("groupMembership", profile.getAttribute("groupMembership"));
assertEquals(3, profile.getAttributes().size());
} else {
assertEquals(0, profile.getAttributes().size());
}
}