try
{
anonimSession.checkPermission(testNode.getPath(), PermissionType.READ);
anonimSession.getRootNode().getNode("." + testNode.getPath());
anonimSession.checkPermission(testNode.getPath(), PermissionType.SET_PROPERTY);
anonimSession.checkPermission(testNode.getPath(), PermissionType.REMOVE);
anonimSession.checkPermission(testNode.getPath(), PermissionType.ADD_NODE);
fail();
}
catch (AccessControlException e)