public static void desensitizeList(final boolean desensitized, final String keyword, final List<String> source,
                                   final KeyWordMatch keyWordMatch, final String dataDesensitizeAlg) {
        if (desensitized && keyWordMatch.matches(keyword)) {
            for (int i = 0; i < source.size(); i++) {
                String ret = DataDesensitizeFactory.selectDesensitize(source.get(i), dataDesensitizeAlg);
                source.set(i, ret);
            }
        }
    }
@Test
    public void desensitizeListTest() {
        List<String> list = Arrays.asList("name", "test");
        DataDesensitizeUtils.desensitizeList(false, "name", list, keyWordMatch, DataDesensitizeEnum.MD5_ENCRYPT.getDataDesensitizeAlg());
        Assertions.assertTrue(CollectionUtils.isEqualCollection(list, list));
        DataDesensitizeUtils.desensitizeList(true, "name", list, keyWordMatch, DataDesensitizeEnum.MD5_ENCRYPT.getDataDesensitizeAlg());
        List<String> md5List = Arrays.asList(DigestUtils.md5Hex("name"), DigestUtils.md5Hex("test"));
        Assertions.assertTrue(CollectionUtils.isEqualCollection(md5List, list));
    }