public void updateContextPath() {
        if (StringUtils.isNoneBlank(this.path)) {
            this.contextPath = StringUtils.indexOf(path, "/", 1) > -1
                    ? this.path.substring(0, StringUtils.indexOf(path, "/", 1)) : path;
        }
    }
@Test
    public void testUpdateContextPath() {
        MetaData metaData = new MetaData("id", "appName", "contextPath", "path", "rpcType",
                "serviceName", "methodName", "parameterTypes", "rpcExt", true);
        metaData.setPath(PATH);
        metaData.updateContextPath();
        assertEquals(metaData.getContextPath(), CONTEXT_PATH);
    }