Assert.assertEquals(HttpStatus.OK.getCode(), response.getStatus());
MediaType mediaType = MediaType.valueOf(response.getContentType());
mediaType.getParameters().clear();
Assert.assertEquals(MediaType.APPLICATION_XML_TYPE, mediaType);
StringReader reader = new StringReader(response.getContentAsString());
Prop prop =
WebDAVModelHelper.unmarshal(WebDAVModelHelper.createUnmarshaller(),
reader,
Prop.class,
"prop");
List<Activelock> activelocks = prop.getLockdiscovery().getActivelock();
Assert.assertNotNull(activelocks);
Assert.assertEquals(1, activelocks.size());
Assert.assertNotNull(activelocks.get(0).getLocktype().getWrite());
Assert.assertNotNull(activelocks.get(0).getLockscope().getExclusive());
Assert.assertEquals("0", activelocks.get(0).getDepth());