assertTrue(vcardStr.contains("ADR;TYPE=HOME,PARCEL,PREF:25334;;South cresent drive\\, Building 5\\, 3rd flo\r\n or;New York;New York;NYC887;U.S.A.\r\n"));
}
@Test
public void testBuildKeyType() throws VCardBuildException {
VCardImpl vcard = getSimpleVCard();
KeyType keyPlain = new KeyType();
keyPlain.setKeyTextType(KeyTextType.PGP);
keyPlain.setKey("plain text key");
vcard.addKey(keyPlain);
KeyType keyBin = new KeyType();
keyBin.setKeyTextType(KeyTextType.X509);
keyBin.setEncodingType(EncodingType.BINARY);
keyBin.setKey("binary data".getBytes());
vcard.addKey(keyBin);
VCardWriter vcardWriter = new VCardWriter();
vcardWriter.setOutputVersion(VCardVersion.V3_0);
vcardWriter.setCompatibilityMode(CompatibilityMode.RFC2426);
vcardWriter.setFoldingScheme(FoldingScheme.MIME_DIR);