assertEquals("given name", vCard.getGivenName());
}
@Test
public void shouldSetOrganization() {
final VCardOrganization organization = vCard.getOrganization();
organization.setData(VCardOrganization.Data.ORGNAME, "XMPP Standards Foundation");
organization.setData(VCardOrganization.Data.ORGUNIT, "Org Unit");
assertEquals("XMPP Standards Foundation", organization.getData(VCardOrganization.Data.ORGNAME));
assertEquals("Org Unit", organization.getData(VCardOrganization.Data.ORGUNIT));
final VCard vCard = new VCard();
vCard.setOrganization(organization);
final VCardOrganization orgaAgain = vCard.getOrganization();
assertEquals("XMPP Standards Foundation", orgaAgain.getData(VCardOrganization.Data.ORGNAME));
assertEquals("Org Unit", orgaAgain.getData(VCardOrganization.Data.ORGUNIT));
}