private void contentWithCustomPrivilege(boolean isSystemViewExport) throws Exception
{
// prepare content
NodeImpl testRoot = (NodeImpl)root.addNode("restricted", "nt:unstructured");
testRoot.addMixin("exo:privilegeable");
HashMap<String, String[]> perm = new HashMap<String, String[]>();
perm.put("john", new String[]{"read", "add_node", "set_property", "remove"});
perm.put("*:/platform/administrators", new String[]{"read", "add_node", "set_property", "remove"});
((ExtendedNode)testRoot).setPermissions(perm);
session.save();