try {
// get node created above
Node n2 = (Node) otherSuperuser.getItem(n1.getPath());
// lock node
Lock lock = n2.lock(false, true);
// assert: user must get non-null token
assertNotNull("user must get non-null token", lock.getLockToken());
// transfer to standard session
String lockToken = lock.getLockToken();
otherSuperuser.removeLockToken(lockToken);
superuser.addLockToken(lockToken);
// assert: user must get null token
assertNull("user must get null token", lock.getLockToken());
// assert: user must get non-null token
assertNotNull("user must get non-null token",
n1.getLock().getLockToken());
} finally {