kryo.register(PayPalAddress.class);
}
@Override
protected void verifyProfile(final UserProfile userProfile) {
final PayPalProfile profile = (PayPalProfile) userProfile;
logger.debug("userProfile : {}", profile);
assertEquals("YAxf5WKSFn4BG_l3wqcBJUSObQTG1Aww5FY0EDf_ccw", profile.getId());
assertEquals(PayPalProfile.class.getSimpleName() + UserProfile.SEPARATOR
+ "YAxf5WKSFn4BG_l3wqcBJUSObQTG1Aww5FY0EDf_ccw", profile.getTypedId());
assertTrue(ProfileHelper.isTypedIdOf(profile.getTypedId(), PayPalProfile.class));
assertTrue(StringUtils.isNotBlank(profile.getAccessToken()));
assertCommonProfile(userProfile, "testscribeup@gmail.com", "Test", "ScribeUP", "Test ScribeUP", null,
Gender.UNSPECIFIED, Locale.FRANCE, null, null, "Europe/Berlin");
final PayPalAddress address = profile.getAddress();
assertEquals("FR", address.getCountry());
assertEquals("Paris", address.getLocality());
assertEquals("75001", address.getPostalCode());
assertEquals("Adr1", address.getStreetAddress());
final Locale language = profile.getLanguage();
assertEquals(Locale.FRANCE, language);
assertEquals(9, profile.getAttributes().size());
}