assertTrue("handler called " + handler.getCalledTimes() + " times", handler.isCalledOnce());
}
@Test
public void shoulGet() {
final PrivateStorageResponseTestHandler handler = new PrivateStorageResponseTestHandler();
manager.retrieve(XMLBuilder.create("exodus", "exodus:prefs"), handler);
session.verifyIQSent(retriveData);
session.answerSuccess(new IQ(XMLBuilder.fromXML(retrieveResponse)));
assertTrue(handler.isCalledOnce());
assertEquals("Hamlet", handler.getLastEvent().getResponseIQ().getChild("query", "jabber:iq:private").getFirstChild("exodus").getChildText("defaultnick"));
}