@Override
    public ShenyuContext decorator(final ShenyuContext shenyuContext, final MetaData metaData) {
        String path = shenyuContext.getPath();
        shenyuContext.setMethod(path);
        shenyuContext.setRealUrl(path);
        shenyuContext.setRpcType(RpcTypeEnum.WEB_SOCKET.getName());
        shenyuContext.setModule(Optional.ofNullable(metaData).map(MetaData::getAppName)
                .orElse(String.format("%s-%s", PluginEnum.WEB_SOCKET.getName(), shenyuContext.getRpcType())));
        return shenyuContext;
    }
@Test
    public void testDecorator() {
        MetaData metaData = null;
        ShenyuContext shenyuContext = new ShenyuContext();
        webSocketShenyuContextDecorator.decorator(shenyuContext, metaData);
        Assertions.assertNull(shenyuContext.getMethod());
        Assertions.assertEquals(shenyuContext.getRpcType(), "websocket");
        Assertions.assertEquals(shenyuContext.getModule(), "websocket-websocket");
    }