conn.addDir(nodeName);
conn.addNode(nodeName + "/" + lockedNodeName, "".getBytes());
// lock
String lockToken = conn.lock(nodeName + "/" + lockedNodeName);
// check
for (JCRWebdavConnection connection : getConnections())
{
HTTPResponse response = connection.removeNode(nodeName + "/" + lockedNodeName);