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));
textFrame.release();
final String channelId = UUID.randomUUID().toString();