@Test
public void webSocketClient() throws Exception {
startServer(new WebSocketServerHandler());
WebSocketClientFactory clientFactory = new WebSocketClientFactory();
final TestClient callback = new TestClient();
WebSocketClient client = clientFactory.newClient(new URI("ws://localhost:" + port + "/websocket"), callback);
client.connect().awaitUninterruptibly();
Thread.sleep(1000);
assertTrue(callback.connected);