@Override
    protected MetaDataRegisterDTO buildMetaDataDTO(final Object bean, @NonNull final ShenyuSpringWebSocketClient webSocketClient, final String path, final Class<?> clazz, final Method method) {
        return MetaDataRegisterDTO.builder()
                .contextPath(getContextPath())
                .appName(getAppName())
                .path(UriComponentsBuilder.fromUriString(PathUtils.decoratorPathWithSlash(getContextPath())).build().encode().toUriString())
                .rpcType(RpcTypeEnum.WEB_SOCKET.getName())
                .enabled(true)
                .ruleName(StringUtils.defaultIfBlank(webSocketClient.ruleName(), getContextPath()))
                .build();
    }
@Test
    public void testBuildMetaDataDTO() throws NoSuchMethodException {
        Method method = mockClass.getClass().getMethod("mockMethod");
        MetaDataRegisterDTO metaDataRegisterDTO = eventListener.buildMetaDataDTO(mockClass, annotation, SUPER_PATH, MockClass.class, method);
        assertNotNull(metaDataRegisterDTO);
    }