final Channel ch = b.connect(uri.getHost(), uri.getPort()).sync().channel();
handler.handshakeFuture().sync();
final String uaid = UUIDUtil.newUAID();
final String json = JsonUtil.toJson(new HelloMessageImpl(uaid.toString()));
final ChannelFuture future = ch.writeAndFlush(new TextWebSocketFrame(json));
future.sync();
final TextWebSocketFrame textFrame = handler.getTextFrame();
final HelloResponse fromJson = JsonUtil.fromJson(textFrame.text(), HelloResponseImpl.class);
assertThat(fromJson.getMessageType(), equalTo(MessageType.Type.HELLO));
assertThat(fromJson.getUAID(), equalTo(uaid));