ConfigTypeHandlerFactory f = ConfigTypeHandlerFactory.getInstance();
Map<String, Object> props = new HashMap<String, Object>();
props.put(Constants.EXPORTED_CONFIGS, Constants.RS_CONFIG_TYPE);
props.put(Constants.EXPORTED_INTENTS, "SOAP HTTP");
ServiceEndpointDescription sd = new ServiceEndpointDescriptionImpl("MyInterface", props);
CxfDistributionProvider dp = new DistributionProviderImpl(bc);
ConfigurationTypeHandler handler = f.getHandler(bc, sd, dp, new HashMap<String, Object>());
assertTrue(handler instanceof PojoConfigurationTypeHandler);
assertTrue(!(handler instanceof JaxRSPojoConfigurationTypeHandler));
assertSame(dp, ((PojoConfigurationTypeHandler) handler).getDistributionProvider());