kryo.register(LinkedInProfile.class);
}
@Override
protected void verifyProfile(final UserProfile userProfile) {
final LinkedInProfile profile = (LinkedInProfile) userProfile;
logger.debug("userProfile : {}", profile);
assertEquals("167439971", profile.getId());
assertEquals(LinkedInProfile.class.getSimpleName() + UserProfile.SEPARATOR + "167439971", profile.getTypedId());
assertTrue(ProfileHelper.isTypedIdOf(profile.getTypedId(), LinkedInProfile.class));
assertTrue(StringUtils.isNotBlank(profile.getAccessToken()));
assertCommonProfile(userProfile,
null,
"test",
"scribeUp",
"test scribeUp",
null,
Gender.UNSPECIFIED,
null,
null,
"http://www.linkedin.com/profile/view?id=167439971&authType=name&authToken=_IWF&trk=api*",
null);
assertEquals("ScribeUP développeur chez OpenSource", profile.getHeadline());
assertNotNull(profile.getAccessSecret());
assertEquals(6, profile.getAttributes().size());
}