@Test
public void resolveDefault()
{

  final SRVDNSResolver resolver = new SRVDNSResolver(contextFactory);
  final Set<SRVRecord> records = resolver.resolve(null);
  Assert.assertEquals(records.size(), 3);
  for (SRVRecord record : records) {
    Assert.assertEquals(
      record.getLdapURL().getHostnameWithSchemeAndPort(),
      "ldap://" + record.getTarget() + ":" + record.getPort());
    Assert.assertEquals(record.getPort(), 389);
    Assert.assertEquals(record.getPriority(), 0);
    Assert.assertTrue(record.getTarget().endsWith(".ldaptive.org"));
    Assert.assertEquals(record.getWeight(), 100);
  }
}