public static Map<String, String> configureFromPulsar1AuthParamString(String authParamsString) {
        Map<String, String> authParams = new HashMap<>();

        if (isNotBlank(authParamsString)) {
            String[] params = authParamsString.split(",");
            for (String p : params) {
                // The value could be a file path, which could contain a colon like "C:\\path\\to\\file" on Windows.
                int index = p.indexOf(':');
                if (index < 0) {
                    continue;
                }
                String key = p.substring(0, index);
                if (!key.isEmpty()) {
                    authParams.put(key, p.substring(index + 1));
                }
            }
        }
        return authParams;
    }
@Test
    public void testConfigureAuthParamString() {
        Map<String, String> params = AuthenticationUtil.configureFromPulsar1AuthParamString(
                "key:value,path:C:\\path\\to\\file,null-key:,:null-value,:,key:value-2");
        assertEquals(params.size(), 3);
        assertEquals(params.get("key"), "value-2");
        assertEquals(params.get("path"), "C:\\path\\to\\file");
        assertEquals(params.get("null-key"), "");
    }