props2.put("configuration.id", org.openengsb.core.api.Constants.CONFIG_CONNECTOR);
registerService(configPersistence, props2, ConfigPersistenceService.class);
}
private ConnectorManagerImpl createServiceManagerMock() {
ConnectorManagerImpl serviceManagerImpl = new ConnectorManagerImpl();
ConnectorRegistrationManager registrationManager = new ConnectorRegistrationManager(bundleContext,
mock(TransformationEngine.class), new ForwardMethodInterceptor(), new SecurityAttributeProviderImpl());
serviceUtils = new DefaultOsgiUtilsService(bundleContext);
serviceManagerImpl.setRegistrationManager(registrationManager);
serviceManagerImpl.setConfigPersistence(configPersistence);
serviceManager = serviceManagerImpl;
return serviceManagerImpl;
}