@Test
public void discoItems() throws Exception {

    ServiceCollector collector = new ServiceCollector();
    when(serverRuntimeContext.getServerRuntimeContextService(
            ServiceDiscoveryRequestListenerRegistry.SERVICE_DISCOVERY_REQUEST_LISTENER_REGISTRY))
                    .thenReturn(collector);
    module = new Socks5Module("socks");
    module.initialize(serverRuntimeContext);
    InfoRequest infoRequest = new InfoRequest(FROM, SERVER, null, "id1");
    List<Item> items = collector.processItemRequest(infoRequest, null);
    List<Item> expected = Arrays.asList(new Item(COMPONENT));
    Assert.assertEquals(expected, items);
}