protected void handleHAProxyTLV(HAProxyTLV tlv, Channel channel) {
        byte[] valueBytes = ByteBufUtil.getBytes(tlv.content());
        if (!BinaryUtil.isAscii(valueBytes)) {
            return;
        }
        AttributeKey<String> key = AttributeKeys.valueOf(
            HAProxyConstants.PROXY_PROTOCOL_TLV_PREFIX + String.format("%02x", tlv.typeByteValue()));
        channel.attr(key).set(new String(valueBytes, CharsetUtil.UTF_8));
    }
@Test
    public void handleHAProxyTLV() {
        when(channel.attr(any(AttributeKey.class))).thenReturn(attribute);
        doNothing().when(attribute).set(any());

        ByteBuf content = Unpooled.buffer();
        content.writeBytes("xxxx".getBytes(StandardCharsets.UTF_8));
        HAProxyTLV haProxyTLV = new HAProxyTLV((byte) 0xE1, content);
        nettyRemotingServer.handleHAProxyTLV(haProxyTLV, channel);
    }