StorageProviderBase implements StorageProvider { public Map<String, AclType> getSpaceACLs(String spaceId) { Map<String, String> allProps = getAllSpaceProperties(spaceId); return unpackACLs(allProps); }  Map<String, String> getSpaceProperties(String spaceId); void setNewSpaceProperties(String spaceId,
                                      Map<String, String> spaceProperties); void setNewSpaceProperties(String spaceId,
                                      Map<String, String> spaceProperties,
                                      Map<String, AclType> spaceACLs); Map<String, AclType> getSpaceACLs(String spaceId); void setSpaceACLs(String spaceId, Map<String, AclType> spaceACLs); void deleteSpace(String spaceId); void deleteSpaceSync(String spaceId); SpaceDeleteWorker getSpaceDeleteWorker(String spaceId); void setWrappedStorageProvider(StorageProvider wrappedStorageProvider);  }
@Test public void testGetSpaceACLs() { createGetSpaceACLsMocks(); Map<String, AclType> acls = providerBase.getSpaceACLs(spaceId); Assert.assertNotNull(acls); Assert.assertEquals(6, acls.size()); Assert.assertEquals(AclType.READ, acls.get(aclPrefix + userRead0)); Assert.assertEquals(AclType.READ, acls.get(aclPrefix + userRead1)); Assert.assertEquals(AclType.WRITE, acls.get(aclPrefix + userWrite0)); Assert.assertEquals(AclType.READ, acls.get(aclGroupPrefix + groupRead0)); Assert.assertEquals(AclType.WRITE, acls.get(aclGroupPrefix + groupWrite0)); Assert.assertEquals(AclType.WRITE, acls.get(aclGroupPrefix + groupWrite0)); }