assertTrue(result.contains("EMAIL:joe@example.org"));
}
@Test
public void testURL() throws VCardBuildException {
VCardImpl vcard = new VCardImpl();
appyBasicName(vcard);
vcard.addUrl(new UrlType("http://www.example.org/"));
String result = getSerializedString(vcard);
assertTrue(result.contains("URL:http://www.example.org/"));
vcard.addUrl(new UrlType("ftp://ftp.example.org/"));
result = getSerializedString(vcard);
assertTrue(result.contains("URL:ftp://ftp.example.org/"));
vcard.addUrl(new UrlType("this is free form text"));
result = getSerializedString(vcard);
assertTrue(result.contains("URL:this is free form text"));
}