" <url>http://www.jabber.org/images/psa-license.jpg</url>\n" +
" <desc>A license to Jabber!</desc>\n" +
" </x>\n" +
"</message>\n";
Message message = unmarshal(xml, Message.class);
OobX oobX = message.getExtension(OobX.class);
Assert.assertNotNull(oobX);
Assert.assertEquals(oobX.getUrl(), new URL("http://www.jabber.org/images/psa-license.jpg"));
Assert.assertEquals(oobX.getDescription(), "A license to Jabber!");
}