Object object = (Object) unmarshaller.unmarshal(getMethod.getResponseBodyAsStream());
NameValuePair[] nameValuePairs = new NameValuePair[1];
nameValuePairs[0] = new NameValuePair("property#tags", TAG_VALUE);
PostMethod postMethod =
executePostForm(String.format("%s?method=PUT", getUriBuilder(ObjectResource.class).build(getWiki(), "Main",
"WebHome", objectToBePut.getClassName(), objectToBePut.getNumber()).toString()), nameValuePairs,
"Admin", "admin");
Assert.assertEquals(getHttpMethodInfo(postMethod), HttpStatus.SC_ACCEPTED, postMethod.getStatusCode());
Object updatedObjectSummary = (Object) unmarshaller.unmarshal(postMethod.getResponseBodyAsStream());
Assert.assertEquals(TAG_VALUE, getProperty(updatedObjectSummary, "tags").getValue());
Assert.assertEquals(object.getClassName(), updatedObjectSummary.getClassName());
Assert.assertEquals(object.getNumber(), updatedObjectSummary.getNumber());
}