public void testServiceConfig() throws Exception {
ObjectServiceFactory factory = (ObjectServiceFactory) getServiceFactory();
AegisServiceConfiguration conf = new AegisServiceConfiguration();
conf.setServiceFactory(factory);
factory.getServiceConfigurations().add(0, conf);
Service service = getServiceFactory().create(EchoImpl.class);
service.setInvoker(new BeanInvoker(new EchoImpl()));
getServiceRegistry().register(service);
Document wsdl = getWSDLDocument("EchoImpl");
printNode(wsdl);
addNamespace("wsdl", WSDLWriter.WSDL11_NS);
addNamespace("xsd","http://www.w3.org/2001/XMLSchema");