HashMap<String, String[]> perm = new HashMap<String, String[]>();
perm.put("john", new String[]{PermissionType.READ});
nodeToLockSession1.setPermissions(perm);
session1.save();
nodeToLockSession1.lock(true, false);// boolean isSessionScoped=false
assertTrue(nodeToLockSession1.isLocked());
nodeToLockSession1.unlock();
assertFalse(nodeToLockSession1.isLocked());
Session session2 = repository.login(new CredentialsImpl("john", "exo".toCharArray()), "ws");