@Override
                    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
                        if (msg instanceof DatagramDnsQuery) {
                            final DatagramDnsQuery dnsQuery = (DatagramDnsQuery) msg;
                            final DnsRecord dnsRecord = dnsQuery.recordAt(DnsSection.QUESTION, 0);
                            if (dnsRecord.type() == DnsRecordType.AAAA) {
                                // Just release the msg and return so that the client request is timed out.
                                ReferenceCountUtil.safeRelease(msg);
                                return;
                            }
                        }
                        super.channelRead(ctx, msg);
                    }
This test does not check anything but makes the future returned by
{@link DefaultDnsResolver#resolve(List, String)}} is completed even before the DNS responses
are received. By doing so, we can make our leak detectors detect any leaks if we forgot to release
the DNS responses. See https://github.com/line/armeria/pull/2951 for more information.
core/src/test/java/com/linecorp/armeria/internal/client/dns/DefaultDnsResolverTest.java