@Test
public void testGetEcho() throws Exception {
HttpClient httpClient = createClient();
String url = "http://localhost:" + PORT + "/Echo/echo/echo/hello";
HttpMethod method = null;
method = new GetMethod(url);
int status = httpClient.executeMethod(method);
assertEquals(HttpStatus.SC_OK, status);
String result = method.getResponseBodyAsString();
assertTrue(result.contains("hello"));
method.releaseConnection();
httpClient = createClient();
url = "http://localhost:" + PORT + "/Echo/echo/echo/hello?wsdl";
method = new GetMethod(url);
status = httpClient.executeMethod(method);
assertEquals(HttpStatus.SC_OK, status);
Document doc = StaxUtils.read(method.getResponseBodyAsStream());
Map<String, String> ns = new HashMap<String, String>();
ns.put("xsd", "http://www.w3.org/2001/XMLSchema");
NodeList nl = XPathAssert.assertValid("//xsd:element[@name='firstHeader']",
doc.getDocumentElement(),
ns);