public static WebSocketRemoteConnectionEndpoint from(CharSequence uriCharSequence) throws URISyntaxException {
        String uriString = uriCharSequence.toString();
        URI uri = URI.create(uriString);
        return from(uri);
    }
@Test
    public void faultyEndpointTest() {
        String faultyProtocolString = "wst://fooDomain.org:7070/ws/";
        assertThrows(IllegalArgumentException.class, () -> {
            WebSocketRemoteConnectionEndpoint.from(faultyProtocolString);
        });
    }