code: void tearDown() throws InterruptedException {
      if (cancelFuture != null) {
        cancelFuture.cancel(false);
      }
      executor.shutdown();
      executor.awaitTermination(10, TimeUnit.SECONDS);
    }
docs: For testing: force this web socket to release its threads.