@Override
    public ShenyuContext decorator(final ShenyuContext shenyuContext, final MetaData metaData) {
        String path = shenyuContext.getPath();
        shenyuContext.setMethod(path);
        shenyuContext.setRealUrl(path);
        shenyuContext.setRpcType(RpcTypeEnum.HTTP.getName());
        shenyuContext.setModule(Optional.ofNullable(metaData).map(MetaData::getAppName)
                .orElse(String.format("%s-%s", PluginEnum.DIVIDE.getName(), shenyuContext.getRpcType())));
        return shenyuContext;
    }
@Test
    public void decoratorTest() {
        MetaData metaData = new MetaData();
        ShenyuContext shenyuContext = new ShenyuContext();
        shenyuContext.setPath(MOCK_CONTEXT_PATH);
        shenyuContext.setHttpMethod(MOCK_CONTEXT_PATH);
        ShenyuContext decorator = divideShenyuContextDecorator.decorator(shenyuContext, metaData);
        assert MOCK_CONTEXT_PATH.equals(decorator.getMethod());
        assert MOCK_CONTEXT_PATH.equals(decorator.getRealUrl());
    }