final DiscoveryItemsResultTestHandler handler = new DiscoveryItemsResultTestHandler();
manager.sendItemsQuery(uri, handler);
session.answerSuccess(DISCO_ITEMS_RESULT);
assertTrue(handler.isCalledOnce());
assertTrue(handler.getLastEvent().hasResult());
final DiscoveryItemsResult result = handler.getLastEvent().getResults();
assertEquals(8, result.getItems().size());
}