public static WebSocketUpstream buildWebSocketUpstream(final String protocol, final String host, final Integer port) {
        return WebSocketUpstream.builder().host(LOCALHOST).protocol(protocol)
                .upstreamUrl(buildUrl(host, port)).weight(DEFAULT_WEIGHT)
                .warmup(Constants.WARMUP_TIME)
                .timestamp(System.currentTimeMillis())
                .status(Objects.nonNull(port) && StringUtils.isNotBlank(host))
                .build();
    }
@Test
    public void buildWebSocketUpstream() {
        WebSocketUpstream webSocketUpstream = CommonUpstreamUtils.buildWebSocketUpstream("tcp", HOST, PORT);
        Assert.assertNotNull(webSocketUpstream);
        Assert.assertEquals(HOST + ":" + PORT, webSocketUpstream.getUpstreamUrl());
        Assert.assertEquals("tcp", webSocketUpstream.getProtocol());
    }