public void replay(AccessControlEntryRecord record) {
        StandardAclWithId aclWithId = StandardAclWithId.fromRecord(record);
        changes.put(aclWithId.id(), Optional.of(aclWithId.acl()));
    }
@Test
    public void testThrowsExceptionOnInvalidStateWhenImageHasOtherAcls() {
        Uuid id = Uuid.fromString("nGiNMQHwRgmgsIlfu73aJQ");
        AccessControlEntryRecord record = new AccessControlEntryRecord();
        record.setId(id);
        record.setResourceType((byte) 1);
        record.setResourceName("foo");
        record.setPatternType((byte) 1);
        record.setPrincipal("User:user");
        record.setHost("host");
        record.setOperation((byte) 1);
        record.setPermissionType((byte) 1);

        Map<Uuid, StandardAcl> initialImageMap = new HashMap<>();
        initialImageMap.put(id, StandardAcl.fromRecord(record));
        AclsImage image = new AclsImage(initialImageMap);
        AclsDelta delta = new AclsDelta(image);

        RemoveAccessControlEntryRecord removeAccessControlEntryRecord = testRemoveAccessControlEntryRecord();
        assertThrows(IllegalStateException.class, () -> delta.replay(removeAccessControlEntryRecord));
    }