public String reasonText() {
        ByteBuf binaryData = content();
        if (binaryData == null || binaryData.readableBytes() <= 2) {
            return "";
        }

        return binaryData.toString(binaryData.readerIndex() + 2, binaryData.readableBytes() - 2, CharsetUtil.UTF_8);
    }
@Test
    void testNonZeroReaderIndex() {
        ByteBuf buffer = Unpooled.buffer().writeZero(1);
        buffer.writeShort(WebSocketCloseStatus.NORMAL_CLOSURE.code())
                .writeCharSequence(WebSocketCloseStatus.NORMAL_CLOSURE.reasonText(), CharsetUtil.US_ASCII);
        doTestValidCode(new CloseWebSocketFrame(true, 0, buffer.skipBytes(1)),
                WebSocketCloseStatus.NORMAL_CLOSURE.code(), WebSocketCloseStatus.NORMAL_CLOSURE.reasonText());
    }