@Test
public void discoComponentInfo() 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, COMPONENT, null, "id1");
    List<InfoElement> infoElements = collector.processComponentInfoRequest(infoRequest, null);
    List<InfoElement> expected = Arrays.asList(new Identity("proxy", "bytestreams", "File Transfer Relay"),
            new Feature(NamespaceURIs.XEP0065_SOCKS5_BYTESTREAMS));
    Assert.assertEquals(expected, infoElements);
}