assertTrue(nodeToLockSession1.isLocked());
nodeToLockSession1.unlock();
assertFalse(nodeToLockSession1.isLocked());
Session session2 = repository.login(new CredentialsImpl("john", "exo".toCharArray()), "ws");
session2.checkPermission(nodeToLockSession1.getPath(), PermissionType.READ);
try
{
session2.checkPermission(nodeToLockSession1.getPath(), PermissionType.SET_PROPERTY);
fail("AccessControlException should have been thrown ");
}