@Override
    public ShenyuContext decorator(final ShenyuContext shenyuContext, final MetaData metaData) {
        shenyuContext.setModule(metaData.getAppName());
        shenyuContext.setMethod(metaData.getServiceName());
        shenyuContext.setContextPath(metaData.getContextPath());
        shenyuContext.setRpcType(RpcTypeEnum.SOFA.getName());
        return shenyuContext;
    }
@Test
    public void decoratorTest() {
        final MetaData metaData = MetaData.builder().contextPath("path").build();
        final ShenyuContext shenyuContext = new ShenyuContext();
        final ShenyuContext context = sofaShenyuContextDecorator.decorator(shenyuContext, metaData);
        assertEquals(context.getContextPath(), "path");
    }