}
@Test
public void testConvertToCmisAcl() {
Ace ace = aceN.toCommonsAce();
assertEquals(ANDREAS, ace.getPrincipalId());
assertEquals(1, ace.getPermissions().size());
assertEquals("", ace.getPermissions().get(0));
ace = aceR.toCommonsAce();
assertEquals(BERTA, ace.getPrincipalId());
assertEquals(1, ace.getPermissions().size());
assertEquals(EnumBasicPermissions.CMIS_READ.value(), ace.getPermissions().get(0));
ace = aceW.toCommonsAce();
assertEquals(CHRISTIAN, ace.getPrincipalId());
assertEquals(1, ace.getPermissions().size());
assertEquals(EnumBasicPermissions.CMIS_WRITE.value(), ace.getPermissions().get(0));
ace = aceA.toCommonsAce();
assertEquals(DOROTHEE, ace.getPrincipalId());
assertEquals(1, ace.getPermissions().size());
assertEquals(EnumBasicPermissions.CMIS_ALL.value(), ace.getPermissions().get(0));
InMemoryAcl acl = createDefaultAcl();
Acl commonsAcl = acl.toCommonsAcl();
assertEquals(4, commonsAcl.getAces().size());
assertTrue(hasCommonsAce(commonsAcl, ANDREAS, ""));