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);
pmd1.setPermissions(Arrays.asList(new String[] { "p1", "p2" }));
pmd.put(pmd1.getKey(), pmd1);
PermissionMappingDataImpl pmd2 = new PermissionMappingDataImpl();
pmd2.setKey(PermissionMapping.CAN_DELETE_OBJECT);
pmd2.setPermissions(Arrays.asList(new String[] { "p3", "p4" }));
pmd.put(pmd2.getKey(), pmd2);
acl1.setPermissionMappingData(pmd);
obj1.setAclCapabilities(acl1);
obj2 = Converter.convert(Converter.convert(obj1));