dns.resolveMX("vertx.io", ar -> {
List<MxRecord> result = ar.result();
assertNotNull(result);
assertFalse(result.isEmpty());
assertEquals(1, result.size());
MxRecord record = result.get(0);
assertEquals(prio, record.priority());
assertEquals(record.name(), mxRecord);
testComplete();
});
await();
}