Types types = newDef.getTypes();
assertNotNull(types);
Collection<ExtensibilityElement> schemas =
CastUtils.cast(types.getExtensibilityElements(), ExtensibilityElement.class);
assertEquals(1, schemas.size());
XmlSchemaCollection schemaCollection = new XmlSchemaCollection();
Element schemaElem = ((Schema)schemas.iterator().next()).getElement();
assertEquals("http://apache.org/hello_world_soap_http/types",
schemaCollection.read(schemaElem).getTargetNamespace()
);
}