Node n1 = testRootNode.addNode(nodeName1, testNodeType);
n1.addMixin(mixLockable);
testRootNode.save();
// lock node
Lock lock = n1.lock(false, true);
assertEquals("getLockOwner() must return the same value as returned " +
"by Session.getUserId at the time that the lock was placed",
testRootNode.getSession().getUserID(),
lock.getLockOwner());