public static String combinePath(String... pathSegments) {
        StringBuilder sb = new StringBuilder();
        for (String path : pathSegments) {
            if (path == null) {
                continue;
            }
            String s = path.startsWith("/") ? path : "/" + path;
            String segment = s.endsWith("/") ? s.substring(0, s.length() - 1) : s;
            sb.append(segment);
        }
        return sb.toString();
    }
@Test
    void combinePath() {
        Map<String, String> combinePathCases = getCombinePathCases();
        combinePathCases.forEach((segments, expected) -> {
            String s = PathUtils.combinePath(segments.split(","));
            assertThat(s).isEqualTo(expected);
        });

        String s = PathUtils.combinePath("a", "", "c");
        assertThat(s).isEqualTo("/a/c");
    }