public void testAsynch() throws Exception
{
HttpClient client = new HttpClient();
{
PostMethod method = new PostMethod("http://localhost:9095/resource?asynch=true");
method.setRequestEntity(new StringRequestEntity("content", "text/plain", null));
int status = client.executeMethod(method);
Assert.assertEquals(Response.Status.ACCEPTED.getStatusCode(), status);
String jobUrl1 = method.getResponseHeader(HttpHeaders.LOCATION).getValue();
GetMethod get = new GetMethod(jobUrl1);