" to='hag66@shakespeare.lit/pda'>\n" +
" <x xmlns='http://jabber.org/protocol/muc#user'>\n" +
" <item affiliation='owner' role='moderator'/>\n" +
" </x>\n" +
"</presence>\n";
Presence presence = unmarshal(xml, Presence.class);
MucUser mucUser = presence.getExtension(MucUser.class);
Assert.assertNotNull(mucUser);
Assert.assertNotNull(mucUser.getItem());
Assert.assertEquals(mucUser.getItem().getAffiliation(), Affiliation.OWNER);
Assert.assertEquals(mucUser.getItem().getRole(), Role.MODERATOR);
}