" <item jid='romeo@montague.net'/>\n" +
" <item jid='iago@shakespeare.lit'/>\n" +
" </blocklist>\n" +
"</iq>";
IQ iq = unmarshal(xml, IQ.class);
BlockList blockList = iq.getExtension(BlockList.class);
Assert.assertEquals(blockList.getItems().size(), 2);
Assert.assertEquals(blockList.getItems().get(0), Jid.valueOf("romeo@montague.net"));
Assert.assertEquals(blockList.getItems().get(1), Jid.valueOf("iago@shakespeare.lit"));
Assert.assertNotNull(blockList);
}