public void connect() throws ConnectException {
        connect(s -> {}, t -> {}, () -> {});
    }
@Test
    public void testThrowExceptionIfConnectionFailed() throws Exception {
        when(webSocketClient.connectBlocking()).thenReturn(false);
        assertThrows(
                ConnectException.class,
                () -> {
                    service.connect();
                });
    }