SpaceUtil { public static void sortAcls(List<Acl> acls) { Collections.sort(acls, ACL_COMPARATOR); } private  SpaceUtil(); static Space populateSpace(Space space,
                                      org.duracloud.domain.Space cloudSpace,
                                      ContentStore contentStore,
                                      Authentication authentication); static void populateContentItem(String duradminBaseURL,
                                           ContentItem contentItem,
                                           String spaceId,
                                           String contentId,
                                           ContentStore store,
                                           Authentication authentication); static void streamContent(ContentStore store, HttpServletResponse response, String spaceId, String contentId); static void streamToResponse(InputStream is,
                                        HttpServletResponse response,
                                        String mimetype,
                                        String contentLength); static AclType resolveCallerAcl(String spaceId, ContentStore store, Map<String, AclType> acls,
                                           Authentication authentication); static AclType resolveCallerAcl(String spaceId, ContentStore store, Map<String, AclType> acls,
                                           Authentication authentication, Boolean snapshotInProgress); static boolean isAdmin(Authentication authentication); static List<Acl> toAclList(Map<String, AclType> spaceACLs); static void sortAcls(List<Acl> acls); static String formatAclDisplayName(String key);  }
@Test public void testAclSort() { replay(); List<Acl> acls = new LinkedList<Acl>(); acls.add(new Acl("user-z")); acls.add(new Acl("group-a")); acls.add(new Acl("user-a")); acls.add(new Acl("group-public")); acls.add(new Acl("group-z")); SpaceUtil.sortAcls(acls); assertPosition(acls, 0, "group-public"); assertPosition(acls, 1, "group-a"); assertPosition(acls, 2, "group-z"); assertPosition(acls, 3, "user-a"); assertPosition(acls, 4, "user-z"); }