try {
// check lock is seen by new session
anotherSession = getHelper().getSuperuserSession();
LockManager anotherLockManager = anotherSession.getWorkspace().getLockManager();
assertTrue(anotherLockManager.isLocked(path));
assertTrue(anotherLockManager.holdsLock(path));
// create a second lock
Node l2node = anotherSession.getNode(path).getParent().addNode("second-lock");
l2node.addMixin(NodeType.MIX_LOCKABLE);
anotherSession.save();