public void unmarshalCompression() throws XMLStreamException, JAXBException {
String xml = "<compression xmlns='http://jabber.org/features/compress'>\n" +
" <method>zlib</method>\n" +
" <method>lzw</method>\n" +
" </compression>\n";
Compression compression = unmarshal(xml, Compression.class);
Assert.assertNotNull(compression);
Assert.assertEquals(compression.getMethods().size(), 2);
Assert.assertEquals(compression.getMethods().get(0), CompressionMethod.ZLIB);
}