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();
final String register = JsonUtil.toJson(new RegisterMessageImpl(channelId));
final ChannelFuture registerFuture = ch.writeAndFlush(new TextWebSocketFrame(register));
registerFuture.sync();