kryo.register(CasOAuthWrapperProfile.class);
}
@Override
protected void verifyProfile(final UserProfile userProfile) {
final CasOAuthWrapperProfile profile = (CasOAuthWrapperProfile) userProfile;
logger.debug("userProfile : {}", profile);
assertEquals(USERNAME, profile.getId());
assertEquals(CasOAuthWrapperProfile.class.getSimpleName() + UserProfile.SEPARATOR + USERNAME,
profile.getTypedId());
assertTrue(ProfileHelper.isTypedIdOf(profile.getTypedId(), CasOAuthWrapperProfile.class));
assertTrue(StringUtils.isNotBlank(profile.getAccessToken()));
assertEquals("uid", profile.getAttribute("uid"));
assertEquals("eduPersonAffiliation", profile.getAttribute("eduPersonAffiliation"));
assertEquals("groupMembership", profile.getAttribute("groupMembership"));
assertEquals(4, profile.getAttributes().size());
}