public void testGetFileFromFolder() throws Exception
{
ExtendedNode folderA = (ExtendedNode)session.getRootNode().addNode("folderA", "nt:folder");
folderA.addMixin("exo:privilegeable");
folderA.setPermission("john", PermissionType.ALL);
folderA.removePermission(IdentityConstants.ANY);
session.save();
assertEquals(4, folderA.getACL().getPermissionEntries().size());
assertEquals("john read", folderA.getACL().getPermissionEntries().get(0).getAsString());
assertEquals("john add_node", folderA.getACL().getPermissionEntries().get(1).getAsString());