@Test
public void testServiceStart() throws Exception {
AegisDatabinding binder = new AegisDatabinding();
JaxWsServerFactoryBean serviceFactory = new JaxWsServerFactoryBean();
serviceFactory.getServiceFactory().setDataBinding(binder);
TypeCreationOptions configuration = binder.getAegisContext().getTypeCreationOptions();
configuration.setDefaultMinOccurs(1);
configuration.setDefaultNillable(false);
binder.getAegisContext().setWriteXsiTypes(true);
serviceFactory.setAddress("local://DuplicateArrayService");
serviceFactory.setServiceBean(new DuplicateArrayServiceBean());
serviceFactory.setServiceClass(DuplicateArrayService.class);
Document doc = this.getWSDLDocument(serviceFactory.create());
this.assertValid("//wsdl:definitions/wsdl:types"
+ "/xsd:schema[@targetNamespace='http://cxf.apache.org/arrays']"
+ "/xsd:complexType[@name='ArrayOfAnyType']",
doc.getDocumentElement());
}