public void writeJsonArray() throws Exception {
final SockJsConfig config = SockJsConfig.withPrefix("/echo").build();
final EmbeddedChannel ch = webSocketChannel(config);
assertUpgradeRequest(ch);
ch.writeInbound(new TextWebSocketFrame("[\"x\",\"y\"]"));
// Discard of the HttpRequest
ch.readInbound();
final String x = ch.readInbound();
assertThat(x, equalTo("x"));
final String y = ch.readInbound();