put.setRequestHeader("If", "</foobar>" + "(<" + locktoken + ">)");
status = this.client.executeMethod(put);
assertTrue("status: " + status, status == 404 || status == 412);
}
finally {
DeleteMethod delete = new DeleteMethod(testuri);
if (locktoken != null) {
delete.setRequestHeader("If", "(<" + locktoken + ">)");
}
status = this.client.executeMethod(delete);
assertTrue("status: " + status, status == 200 || status == 204 || status == 404);
}
}