public static String fixPath(String path) {
        if (null == path) {
            return SLASH;
        }
        if (path.charAt(0) != '/') {
            path = SLASH + path;
        }
        if (path.length() > 1 && path.endsWith(SLASH)) {
            path = path.substring(0, path.length() - 1);
        }
        if (!path.contains("\\s")) {
            return path;
        }
        return VAR_FIXPATH_PATTERN.matcher(path).replaceAll("%20");
    }
@Test
    public void testFixPath() {
        String path = PathKit.fixPath("/a/b/");
        Assert.assertEquals("/a/b", path);

        String path2 = PathKit.cleanPath("/a//b//c//");
        Assert.assertEquals("/a/b/c/", path2);

    }