public void testAddressList() throws Exception {
Mailbox mailbox1 = Mailbox.parse("JD <john.doe@acme.org>");
Mailbox mailbox2 = Mailbox.parse("jane.doe@example.org");
Mailbox mailbox3 = Mailbox.parse("Mary Smith <mary@example.net>");
Group group = new Group("The Does", mailbox1, mailbox2);
AddressListField field = Fields.addressList("Resent-To", Arrays.asList(
group, mailbox3));
assertEquals("Resent-To: The Does: JD <john.doe@acme.org>, "
+ "jane.doe@example.org;, Mary\r\n Smith <mary@example.net>",