public void testWSHttpCall() throws Exception {
AsyncHttpClient c = new AsyncHttpClient();
WebSocket websocket = c.prepareGet("ws://localhost:" + port + "/echo").execute(
new WebSocketUpgradeHandler.Builder()
.addWebSocketListener(new WebSocketTextListener() {
@Override
public void onMessage(String message) {
received.add(message);
log.info("received --> " + message);
latch.countDown();