" subscription='subscribed'/>\n" +
" </event>\n" +
"</message>\n";
Message message = unmarshal(xml, Message.class);
Assert.assertNotNull(message);
Event event = message.getExtension(Event.class);
Assert.assertNotNull(event);
Assert.assertNotNull(event.getSubscription());
Assert.assertNotNull(event.getSubscription().getExpiry());
Assert.assertEquals(event.getSubscription().getNode(), "princely_musings");
Assert.assertEquals(event.getSubscription().getJid(), Jid.valueOf("francisco@denmark.lit"));
Assert.assertEquals(event.getSubscription().getSubscriptionState(), SubscriptionState.SUBSCRIBED);
Assert.assertEquals(event.getSubscription().getSubId(), "ba49252aaa4f5d320c24d3766f0bdcade78c78d3");
}