Changed write to writeAndFlush in DnsCodecTest