TraceMethod trace = new TraceMethod("http://localhost:" + portTraceOff + "/myservice");
httpclient.executeMethod(trace);
// TRACE shouldn't be allowed by default
assertTrue(trace.getStatusCode() == 405);
trace.releaseConnection();
}
@Test
public void testTraceEnabled() throws Exception {
HttpClient httpclient = new HttpClient();