put.setRequestEntity(new StringRequestEntity("bar", "text/plain", "UTF-8"));
status = this.client.executeMethod(put);
assertEquals(201, status);
//try to create new binding of R with path bindtest2/res2 and Overwrite:F
DavMethodBase bind = new BindMethod(subcol2, new BindInfo(testres1, "res2"));
bind.addRequestHeader(new Header("Overwrite", "F"));
status = this.client.executeMethod(bind);
assertEquals(412, status);
//verify that bindtest2/res2 still points to R'
GetMethod get = new GetMethod(testres2);
status = this.client.executeMethod(get);
assertEquals(200, status);
assertEquals("bar", get.getResponseBodyAsString());
//create new binding of R with path bindtest2/res2
bind = new BindMethod(subcol2, new BindInfo(testres1, "res2"));
status = this.client.executeMethod(bind);
assertTrue("status: " + status, status == 200 || status == 204);
//verify that bindtest2/res2 now points to R
get = new GetMethod(testres2);