Domain.class);
DomainProvider authDomainProvider = createDomainProviderMock(AuthorizationDomain.class, "authorization");
CompositeConnectorProvider compositeConnectorProvider = new CompositeConnectorProvider();
compositeConnectorProvider.setBundleContext(bundleContext);
ConnectorInstanceFactory cFactory = compositeConnectorProvider.createFactory(authDomainProvider);
Connector instance = cFactory.createNewInstance("auth-admin");
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put("composite.strategy.name", "authorization");
AffirmativeBasedAuthorizationStrategy service = new AffirmativeBasedAuthorizationStrategy();
service.setUtilsService(serviceUtils);
registerService(service, props, CompositeConnectorStrategy.class);
instance = cFactory.applyAttributes(instance,
ImmutableMap.of("compositeStrategy", "authorization", "queryString", "(location.root=authorization/*)"));
registerServiceAtLocation(instance, "authorization-root", "root", AuthorizationDomain.class, Domain.class);
context.putBean("authorizer", instance);
OpenEngSBShiroAuthenticator openEngSBShiroAuthenticator = new OpenEngSBShiroAuthenticator();