IUserProfile profile1 = this._helper.createUserProfile(null,
"name1 surname1", "indirizzoemail1@inesistente.itt", birthdate1, "it");
Contact contact1 = this._helper.createContact(null, "editorCoach", true, profile1);
// Aggiunta contatto1
this._addressBookManager.addContact(contact1);
IContact added1 = this._addressBookManager.getContact(contact1.getId());
this.compareContacts(contact1, added1);
assertNotNull(added1.getId());
assertNotNull(added1.getContactInfo().getId());
Date birthdate2 = this._helper.setBirthdate(1982, 10, 25);
IUserProfile profile2 = this._helper.createUserProfile("pippo",
"name2 surname2", "indirizzoemail2@inesistente.itt", birthdate2, "it");
Contact contact2 = this._helper.createContact("pippo", "editorCoach", true, profile2);
// Aggiunta contatto2
this._addressBookManager.addContact(contact2);
IContact added2 = this._addressBookManager.getContact(contact2.getId());
this.compareContacts(contact2, added2);
assertEquals("pippo", added2.getId());
assertEquals("pippo", added2.getContactInfo().getId());
assertEquals("pippo", profile2.getId());
} catch (Throwable t) {
throw t;
} finally {
this._helper.cleanAddressBook();