acMgr.checkPermission(id, AccessManager.READ | AccessManager.WRITE | AccessManager.REMOVE + 1);
}
public void testCheckPermissionWithUnknowId() throws RepositoryException, NotExecutableException {
Session s = getHelper().getReadOnlySession();
NodeId id = new NodeId();
try {
AccessManager acMgr = getAccessManager(s);
acMgr.checkPermission(id, AccessManager.READ);
fail("AccessManager.checkPermission should throw ItemNotFoundException with a random (unknown) item id.");
} catch (ItemNotFoundException e) {