lock = otherNode.getLock();
// assert: session must hold lock token
assertTrue("session must hold lock token", containsLockToken(other, lock.getLockToken()));
otherNode.unlock();
assertFalse("Node is locked", otherNode.isLocked());
otherNode.setProperty(propertyName1, "foo");
other.save();