@Override
    public boolean updateGlobalWhiteAddrsConfig(List<String> globalWhiteAddrsList) {
        return aclPlugEngine.updateGlobalWhiteAddrsConfig(globalWhiteAddrsList);
    }
@Test
    public void updateGlobalWhiteRemoteAddressesTest() throws InterruptedException {
        String backupFileName = System.getProperty("rocketmq.home.dir")
                + File.separator + "conf/plain_acl_bak.yml".replace("/", File.separator);
        String targetFileName = System.getProperty("rocketmq.home.dir")
                + File.separator + "conf/plain_acl.yml".replace("/", File.separator);
        PlainAccessData backUpAclConfigMap = AclUtils.getYamlDataObject(backupFileName, PlainAccessData.class);
        AclUtils.writeDataObject(targetFileName, backUpAclConfigMap);

        List<String> globalWhiteAddrsList = new ArrayList<>();
        globalWhiteAddrsList.add("192.168.1.*");

        PlainAccessValidator plainAccessValidator = new PlainAccessValidator();
        Assert.assertEquals(plainAccessValidator.updateGlobalWhiteAddrsConfig(globalWhiteAddrsList, null), true);

        String aclFileName = System.getProperty("rocketmq.home.dir")
            + File.separator + "conf/plain_acl.yml".replace("/", File.separator);
        PlainAccessData readableMap = AclUtils.getYamlDataObject(aclFileName, PlainAccessData.class);
        List<PlainAccessData.DataVersion> dataVersions = readableMap.getDataVersion();
        Assert.assertEquals(1L, dataVersions.get(0).getCounter());
        AclUtils.writeDataObject(targetFileName, backUpAclConfigMap);
    }