@Test
public void unmarshalFailureUnsupportedMethod() throws XMLStreamException, JAXBException {
String xml = "<failure xmlns='http://jabber.org/protocol/compress'>\n" +
" <unsupported-method/>\n" +
"</failure>\n";
Failure failure = unmarshal(xml, Failure.class);
Assert.assertNotNull(failure);
Assert.assertTrue(failure.getCondition() instanceof Failure.UnsupportedMethod);
}