context.putBean("wiringService", defaultWiringService);
serviceUtils = new DefaultOsgiUtilsService(bundleContext);
context.putBean("osgiUtilsService", serviceUtils);
ConnectorRegistrationManager registrationManager = new ConnectorRegistrationManager(bundleContext,
mock(TransformationEngine.class), new ForwardMethodInterceptor(), new SecurityAttributeProviderImpl());
XLinkConnectorManagerImpl serviceManager = new XLinkConnectorManagerImpl();
serviceManager.setRegistrationManager(registrationManager);
DummyConfigPersistenceService<String> backend = new DummyConfigPersistenceService<String>();
DefaultConfigPersistenceService persistenceService = new DefaultConfigPersistenceService(backend);
serviceManager.setConfigPersistence(persistenceService);
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("configuration.id", Constants.CONFIG_CONNECTOR);
registerService(persistenceService, props, ConfigPersistenceService.class);