public void testCheckAndCleanPermissions() throws Exception
{
ExtendedNode node = (ExtendedNode)accessTestRoot.addNode("testCheckAndCleanPermissions");
// node.addMixin("exo:accessControllable");
node.addMixin("exo:owneable");
node.addMixin("exo:privilegeable");
HashMap<String, String[]> perm = new HashMap<String, String[]>();
perm.put("john", PermissionType.ALL);
perm.put("mary", new String[]{PermissionType.READ});
node.setPermissions(perm);