ByteSequence raw = ContentUtil.encode(s);
ParserCursor cursor = new ParserCursor(0, s.length());
Group group = parser.parseGroup(raw, cursor);
assertEquals("group", group.getName());
MailboxList mailboxes = group.getMailboxes();
assertEquals(2, mailboxes.size());
Mailbox mailbox1 = mailboxes.get(0);
assertNull(mailbox1.getName());
assertEquals("john.doe@acme.org", mailbox1.getAddress());
Mailbox mailbox2 = mailboxes.get(1);
assertEquals("Mary Smith", mailbox2.getName());
assertEquals("mary@example.net", mailbox2.getAddress());
}