Document doc = DocumentHelper.parseText(wsdl);
assertEquals("http://simple.component.api.mule.org", doc.valueOf("/wsdl:definitions/@targetNamespace"));
assertEquals("mulePortType", doc.valueOf("/wsdl:definitions/wsdl:portType/@name"));
assertEquals(
"http://simple.component.api.mule.org",
doc.valueOf("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='echo']/wsdl:input[@name='echoRequest']/wsdlsoap:body/@namespace"));
assertEquals(
"http://simple.component.api.mule.org",
doc.valueOf("/wsdl:definitions/wsdl:binding/wsdl:operation[@name='echo']/wsdl:output[@name='echoResponse']/wsdlsoap:body/@namespace"));
assertEquals("muleService", doc.valueOf("/wsdl:definitions/wsdl:service/@name"));
assertEquals("muleServicePort", doc.valueOf("/wsdl:definitions/wsdl:service/wsdl:port/@name"));