public static String convertToSplitName(String str, String split) {
        if (isSnakeCase(str)) {
            return snakeToSplitName(str, split);
        } else {
            return camelToSplitName(str, split);
        }
    }
@Test
    void testConvertToSplitName() {
        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("ab_Cd_Ef", "-"));
        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("Ab_Cd_Ef", "-"));
        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("ab_cd_ef", "-"));
        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("AB_CD_EF", "-"));
        assertEquals("abcdef", StringUtils.convertToSplitName("abcdef", "-"));
        assertEquals("qos-enable", StringUtils.convertToSplitName("qosEnable", "-"));
        assertEquals("name", StringUtils.convertToSplitName("NAME", "-"));

        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("abCdEf", "-"));
        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("AbCdEf", "-"));

        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("ab-cd-ef", "-"));
        assertEquals("ab-cd-ef", StringUtils.convertToSplitName("Ab-Cd-Ef", "-"));
    }