Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put(org.openengsb.core.api.Constants.CONNECTOR_KEY, connectorType);
props.put(org.openengsb.core.api.Constants.DOMAIN_KEY, domains);
registerService(connectorProvider, props, ConnectorProvider.class);
ServiceDescriptor descriptor = mock(ServiceDescriptor.class);
when(descriptor.getId()).thenReturn(connectorType);
LocalizableString name = mockLocalizeableString("service.name");
when(descriptor.getName()).thenReturn(name);
LocalizableString desc = mockLocalizeableString("service.description");
when(descriptor.getDescription()).thenReturn(desc);
when(connectorProvider.getDescriptor()).thenReturn(descriptor);
return connectorProvider;
}