vCard = new VCard(packet);
}
@Test
public void shouldAddEmails() {
final VCardEmail newEmail = new VCardEmail("some@example.com", false);
final VCard vCard = new VCard();
vCard.addEmail(newEmail);
final List<VCardEmail> emails = vCard.getEmails();
assertEquals(1, emails.size());
final VCardEmail first = emails.get(0);
assertEquals("some@example.com", first.getUserId());
assertFalse(first.isPreferred());
}