" </item>\n" +
" </items>\n" +
" </pubsub>\n" +
"</iq>";
IQ iq = unmarshal(xml, IQ.class);
PubSub pubSub = iq.getExtension(PubSub.class);
Assert.assertNotNull(pubSub);
Assert.assertNotNull(pubSub.getItems());
Assert.assertEquals(pubSub.getItems().size(), 1);
Assert.assertEquals(pubSub.getItems().get(0).getId(), "111f4b3c50d7b0df729d299bc6f8e9ef9066971f");
Assert.assertTrue(pubSub.getItems().get(0).getPayload() instanceof AvatarData);
}