{
Map props = new HashMap();
props.put(HttpConnector.HTTP_METHOD_PROPERTY, "GET");
MuleClient client = new MuleClient(muleContext);
MuleMessage result = client.send("http://localhost:" + getPorts().get(1) + "/services/EchoService2?wsdl", null, props);
assertNotNull(result);
String wsdl = result.getPayloadAsString();
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"));