PutMethod put = new PutMethod(testuri);
status = this.client.executeMethod(put);
assertTrue("status: " + status, status == 200 || status == 201 || status == 204);
// try to move outside the servlet's name space
MoveMethod move = new MoveMethod(testuri, "/foobar", true);
status = this.client.executeMethod(move);
assertTrue("status: " + status, status == 403);
// try a relative path
move = new MoveMethod(testuri, "foobar", true);
status = this.client.executeMethod(move);
assertTrue("status: " + status, status == 400);
move = new MoveMethod(testuri, destinationpath, true);
status = this.client.executeMethod(move);
assertTrue("status: " + status, status == 200 || status == 201 || status == 204);
HeadMethod head = new HeadMethod(destinationuri);
status = this.client.executeMethod(head);