kryo.register(WordPressLinks.class);
}
@Override
protected void verifyProfile(final UserProfile userProfile) {
final WordPressProfile profile = (WordPressProfile) userProfile;
logger.debug("userProfile : {}", profile);
assertEquals("35944437", profile.getId());
assertEquals(WordPressProfile.class.getSimpleName() + UserProfile.SEPARATOR + "35944437", profile.getTypedId());
assertTrue(ProfileHelper.isTypedIdOf(profile.getTypedId(), WordPressProfile.class));
assertTrue(StringUtils.isNotBlank(profile.getAccessToken()));
assertCommonProfile(userProfile, "testscribeup@gmail.com", null, null, "testscribeup", "testscribeup",
Gender.UNSPECIFIED, null,
"https://0.gravatar.com/avatar/67c3844a672979889c1e3abbd8c4eb22?s=96&d=identicon&r=G",
"http://en.gravatar.com/testscribeup", null);
assertEquals(36224958, profile.getPrimaryBlog().intValue());
final WordPressLinks links = profile.getLinks();
assertEquals("https://public-api.wordpress.com/rest/v1/me", links.getSelf());
assertEquals("https://public-api.wordpress.com/rest/v1/me/help", links.getHelp());
assertEquals("https://public-api.wordpress.com/rest/v1/sites/36224958", links.getSite());
assertEquals(8, profile.getAttributes().size());
}