// as we have a HttpEncoder in the pipeline to start with.
ch.readOutbound();
assertThat(((TextWebSocketFrame) readOutboundDiscardEmpty(ch)).content().toString(UTF_8), equalTo("o"));
ch.writeInbound(new CloseWebSocketFrame(1000, "Normal close"));
final CloseWebSocketFrame closeFrame = ch.readOutbound();
assertThat(closeFrame.statusCode(), is(1000));
assertThat(closeFrame.reasonText(), equalTo("Normal close"));
verify(sockJsService).onOpen(any(SockJsSessionContext.class));
verify(sockJsService).onClose();
}