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());
}