" <reason>Treason</reason>\n" +
" </item>\n" +
" </query>\n" +
"</iq>\n";
IQ iq = unmarshal(xml, IQ.class);
MucAdmin mucAdmin = iq.getExtension(MucAdmin.class);
Assert.assertNotNull(mucAdmin);
Assert.assertNotNull(mucAdmin.getItems());
Assert.assertEquals(mucAdmin.getItems().get(0).getJid(), Jid.valueOf("earlofcambridge@shakespeare.lit"));
Assert.assertEquals(mucAdmin.getItems().get(0).getAffiliation(), Affiliation.OUTCAST);
Assert.assertEquals(mucAdmin.getItems().get(0).getReason(), "Treason");
}