}
@Test
public void shouldSendInfoQuery() {
final XmppURI uri = XmppURI.uri("node", "localhost.localdomain", "resource");
final DiscoveryInfoResultTestHandler handler = new DiscoveryInfoResultTestHandler();
manager.sendInfoQuery(uri, handler);
session.answerSuccess(DISCO_RESULT);
assertTrue(handler.isCalledOnce());
assertTrue(handler.getLastEvent().hasResult());
final DiscoveryInfoResults result = handler.getLastEvent().getResults();
assertEquals(2, result.getIdentities().size());
assertEquals(7, result.getFeatures().size());
}