public void testLockVisibility() throws RepositoryException {
Session otherSession = getHelper().getReadWriteSession();
try {
Node ln = (Node) otherSession.getItem(lockedNode.getPath());
assertTrue("Locked node must also be locked for another session", ln.isLocked());
assertTrue("Locked node must also be locked for another session", ln.holdsLock());
assertTrue("Locked node must also be locked for another session", getLockManager(otherSession).holdsLock(ln.getPath()));
} finally {
otherSession.logout();
}
}