//custom types
{
List<ExtendedType> it = vcard.getExtendedTypes();
assertEquals(9, it.size());
ExtendedType f = it.get(0);
assertEquals("X-PHONETIC-FIRST-NAME", f.getExtendedName());
assertEquals("Jon", f.getExtendedValue());
f = it.get(1);
assertEquals("X-PHONETIC-LAST-NAME", f.getExtendedName());
assertEquals("Dow", f.getExtendedValue());
f = it.get(2);
assertEquals("item1", f.getGroup());
assertEquals("X-ABLABEL", f.getExtendedName());
assertEquals("AssistantPhone", f.getExtendedValue());
f = it.get(3);
assertEquals("item2", f.getGroup());
assertEquals("X-ABADR", f.getExtendedName());
assertEquals("Silicon Alley", f.getExtendedValue());
f = it.get(4);
assertEquals("item3", f.getGroup());
assertEquals("X-ABADR", f.getExtendedName());
assertEquals("Street 4, Building 6,\nFloor 8\nNew York\nUSA", f.getExtendedValue());
f = it.get(5);
assertEquals("item4", f.getGroup());
assertEquals("X-ABLABEL", f.getExtendedName());
assertEquals("_$!<HomePage>!$_", f.getExtendedValue());
f = it.get(6);
assertEquals("item5", f.getGroup());
assertEquals("X-ABRELATEDNAMES", f.getExtendedName());
assertEquals("Jenny", f.getExtendedValue());
List<ExtendedParamType> xlist = f.getExtendedParams();
assertEquals(1, xlist.size());
assertEquals("TYPE", xlist.get(0).getTypeName());
assertEquals("PREF", xlist.get(0).getTypeValue());
f = it.get(7);
assertEquals("item5", f.getGroup());
assertEquals("X-ABLABEL", f.getExtendedName());
assertEquals("Spouse", f.getExtendedValue());
f = it.get(8);
assertEquals("X-ABUID", f.getExtendedName());
assertEquals("6B29A774-D124-4822-B8D0-2780EC117F60:ABPerson", f.getExtendedValue());
}
VCardImpl vcard2 = (VCardImpl)vcard;
if(vcard2.hasErrors()) {