}
@Test
public void marshalAddresses() throws JAXBException, XMLStreamException {
List<Address> addressList = new ArrayList<>();
addressList.add(new Address(Address.Type.TO, Jid.valueOf("hildjj@jabber.org/Work"), "description", "node"));
addressList.add(new Address(Address.Type.CC, Jid.valueOf("jer@jabber.org/Home")));
Addresses addresses = new Addresses(addressList);
String xml = marshal(addresses);
Assert.assertEquals(xml, "<addresses xmlns=\"http://jabber.org/protocol/address\"><address type=\"to\" jid=\"hildjj@jabber.org/Work\" desc=\"description\" node=\"node\"></address><address type=\"cc\" jid=\"jer@jabber.org/Home\"></address></addresses>");
}