{
HttpClient client = new HttpClient();
{
PutMethod method = new PutMethod("http://localhost:9095/resource?oneway=true");
method.setRequestEntity(new StringRequestEntity("content", "text/plain", null));
int status = client.executeMethod(method);
Assert.assertEquals(202, status);
Thread.sleep(1500);
GetMethod get = new GetMethod("http://localhost:9095/resource");
status = client.executeMethod(get);
Assert.assertEquals(Integer.toString(1), get.getResponseBodyAsString());