public static String buildContextPath(final String contextPath, final String appName) {
        return UriUtils.repairData(StringUtils.isEmpty(contextPath) ? appName : contextPath);
    }
@Test
    public void testBuildContextPath() {
        final String url = "/contextPath/service";
        final String appName = "/app";
        assertEquals(url, ContextPathUtils.buildContextPath(url, appName));
        assertEquals(appName, ContextPathUtils.buildContextPath("", appName));
    }