}
assertEquals(200,method.getStatusCode());
assertTrue(method.getResponseBodyAsString().indexOf("<title>BasicAuth Servlet: POST</title>") >= 0);
assertTrue(method.getResponseBodyAsString().indexOf("<p>You have authenticated as \"jakarta:commons\"</p>") >= 0);
method.recycle();
method.setPath("/" + getWebappContext() + "/auth/basic");
method.setRequestBody(new NameValuePair[] { new NameValuePair("testing","one") } );
try {
client.executeMethod(method);
} catch (Throwable t) {