manager.updateOwnVCard(vCard, handler);
session.verifyIQSent(VCARD_SETTED);
}
private void shouldParseVCardImpl(final String vcard) {
final VCardResponseTestHandler handler = new VCardResponseTestHandler();
manager.requestOwnVCard(handler);
session.verifyIQSent(new IQ(Type.get));
session.answerSuccess(new IQ(XMLBuilder.fromXML(vcard)));
assertTrue(handler.isCalledOnce());
assertTrue(handler.getLastVCardResponse().hasVCard());
assertNotNull(handler.getLastVCardResponse().getVCard().getNickName());
}