public static String decodeName(ByteBuf in) {
        return DnsCodecUtil.decodeDomainName(in);
    }
@Test
    public void testDecodeName() {
        testDecodeName("netty.io.", Unpooled.wrappedBuffer(new byte[] {
                5, 'n', 'e', 't', 't', 'y', 2, 'i', 'o', 0
        }));
    }