obj1.setCapabilities(cap1);
AclCapabilitiesDataImpl acl1 = new AclCapabilitiesDataImpl();
acl1.setAclPropagation(AclPropagation.PROPAGATE);
List<PermissionDefinition> pddList = new ArrayList<PermissionDefinition>();
PermissionDefinitionDataImpl pdd1 = new PermissionDefinitionDataImpl();
pdd1.setPermission("test:perm1");
pdd1.setDescription("Permission1");
pddList.add(pdd1);
PermissionDefinitionDataImpl pdd2 = new PermissionDefinitionDataImpl();
pdd2.setPermission("test:perm2");
pdd2.setDescription("Permission2");
pddList.add(pdd2);
acl1.setPermissionDefinitionData(pddList);
Map<String, PermissionMapping> pmd = new LinkedHashMap<String, PermissionMapping>();
PermissionMappingDataImpl pmd1 = new PermissionMappingDataImpl();
pmd1.setKey(PermissionMapping.CAN_CREATE_DOCUMENT_FOLDER);