DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.newDocument();
doc.appendChild(doc.createElementNS("DAV:", "propfind"));
XmlRequestEntity xmlent = new XmlRequestEntity(doc);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
xmlent.writeRequest(bos);
Document doc2 = db.parse(new ByteArrayInputStream(bos.toByteArray()));
Element docelem = doc2.getDocumentElement();
assertEquals("DAV:", docelem.getNamespaceURI());
}