@Test
public void testWhetherOrderingMatters() {

    List<ACL> testACL = new ArrayList<ACL>();
    testACL.add(new ACL(ZooDefs.Perms.READ, new Id("scheme", "ro")));
    testACL.add(new ACL(ZooDefs.Perms.WRITE, new Id("scheme", "rw")));
    ReferenceCountedACLCache cache = new ReferenceCountedACLCache();
    Long aclId = cache.convertAcls(testACL);
    List<ACL> testACL2 = new ArrayList<ACL>();
    testACL2.add(new ACL(ZooDefs.Perms.WRITE, new Id("scheme", "rw")));
    testACL2.add(new ACL(ZooDefs.Perms.READ, new Id("scheme", "ro")));
    assertFalse(aclId.equals(cache.convertAcls(testACL2)));
}