final UserProfile profile3 = ProfileHelper.buildProfile(profile2.getTypedId(), newAttributes);
verifyProfile(profile3);
// Kryo serialization
final Kryo kryo = new Kryo();
kryo.register(HashMap.class);
kryo.register(Locale.class, new LocaleSerializer());
kryo.register(Date.class);
kryo.register(FormattedDate.class, new FormattedDateSerializer());
kryo.register(Gender.class);
kryo.register(Color.class, new ColorSerializer());