{
public void testExtensions()
throws Exception
{
ObjectServiceFactory osf = (ObjectServiceFactory) getServiceFactory();
DefaultWSDLBuilderFactory factory = (DefaultWSDLBuilderFactory) osf.getWsdlBuilderFactory();
Service service = getServiceFactory().create(Echo.class);
service.setInvoker(new BeanInvoker(new EchoImpl()));
getServiceRegistry().register(service);
List exts = new ArrayList();
exts.add(new CustomExtension());
factory.setWSDLBuilderExtensions(exts);
Document wsdl = getWSDLDocument("Echo");
addNamespace("w", WSDLWriter.WSDL11_NS);
addNamespace("f", "urn:foo");
assertValid("//w:message[@name='Test']", wsdl);