WSURI { public static URI toWebsocket(CharSequence inputUrl) throws URISyntaxException { return toWebsocket(new URI(inputUrl.toString())); }  static URI toHttp(final URI inputUri); static URI toWebsocket(CharSequence inputUrl); static URI toWebsocket(CharSequence inputUrl, String query); static URI toWebsocket(final URI inputUri);  }
@Test public void testHttpsToWss() throws URISyntaxException { assertURI(WSURI.toWebsocket(URI.create("https: }
@Test public void testHttpToWs() throws URISyntaxException { assertURI(WSURI.toWebsocket(URI.create("http: assertURI(WSURI.toWebsocket(URI.create("http: assertURI(WSURI.toWebsocket("http: assertURI(WSURI.toWebsocket("http: assertURI(WSURI.toWebsocket("http: }
@Test public void testWssToWss() throws URISyntaxException { assertURI(WSURI.toWebsocket(URI.create("wss: }
@Test public void testWsToWs() throws URISyntaxException { assertURI(WSURI.toWebsocket(URI.create("ws: }