private void syncIdToAcl(
        Map<Uuid, StandardAcl> prevIdToAcl,
        Map<Uuid, StandardAcl> nextIdToAcl
    ) {
        for (Entry<Uuid, StandardAcl> entry : prevIdToAcl.entrySet()) {
            if (!entry.getValue().equals(nextIdToAcl.get(entry.getKey()))) {
                authorizer.removeAcl(entry.getKey());
            }
        }
        for (Entry<Uuid, StandardAcl> entry : nextIdToAcl.entrySet()) {
            if (!entry.getValue().equals(prevIdToAcl.get(entry.getKey()))) {
                authorizer.addAcl(entry.getKey(), entry.getValue());
            }
        }
    }
The MockAclMutator is a class which connects a StandardAuthorizer up to an AclControlManager.
Normally, this connection goes through the QuorumController. However, this class just attaches
the two directly, for the purpose of unit testing.
metadata/src/test/java/org/apache/kafka/controller/MockAclMutator.java