@Override
    protected String doDesensitize(final String source) {
        return desensitizeData(source, source.length() / 2);
    }
@Test
    void doDesensitizeTest() {
        CharacterReplaceDataDesensitize characterReplaceDataMask = new CharacterReplaceDataDesensitize();
        String ret = characterReplaceDataMask.doDesensitize("1");
        Assertions.assertEquals("*", ret);

        String sourceData = "123456789";
        String replaceText = DataDesensitizeFactory.selectDesensitize(sourceData, DataDesensitizeEnum.CHARACTER_REPLACE.getDataDesensitizeAlg());
        int maskNum = 0;
        for (char c : replaceText.toCharArray()) {
            if (c == '*') {
                maskNum++;
            }
        }
        Assertions.assertEquals(sourceData.length() / 2, maskNum);
    }