@Override
 public void onWebSocketError(Throwable cause) {
   LOG.debug("{} onWebSocketError", id, cause);
   Assert.assertThat("Error capture", errorQueue.offer(cause), is(true));
 }
 @Override
 public void onWebSocketText(String message) {
   LOG.debug("{} onWebSocketText({})", id, message);
   messageQueue.offer(message);
   dataLatch.countDown();
 }
 @Override
 public void onWebSocketBinary(byte[] payload, int offset, int len) {
   LOG.debug("{} onWebSocketBinary(byte[{}],{},{})", id, payload.length, offset, len);
   messageQueue.offer(MessageDebug.toDetailHint(payload, offset, len));
   dataLatch.countDown();
 }