@Test
public void parseDnsUrl()
{

  final DnsSrvConnectionStrategy strategy = new DnsSrvConnectionStrategy();
  Assert.assertEquals(strategy.parseDnsUrl("dns:"), new String[] {"dns:", null});
  Assert.assertEquals(
    strategy.parseDnsUrl("dns:?_ldap._tcp.ldaptive.org"),
    new String[] {"dns:", "_ldap._tcp.ldaptive.org"});
  Assert.assertEquals(strategy.parseDnsUrl("dns://dns.server.com"), new String[] {"dns://dns.server.com", null});
  Assert.assertEquals(
    strategy.parseDnsUrl("dns://dns.server.com/ldaptive.org"),
    new String[] {"dns://dns.server.com/ldaptive.org", null});
  Assert.assertEquals(
    strategy.parseDnsUrl("dns://dns.server.com/ldaptive.org?_ldap._tcp"),
    new String[] {"dns://dns.server.com/ldaptive.org", "_ldap._tcp"});
  Assert.assertEquals(
    strategy.parseDnsUrl("dns://dns.server.com?_ldap._tcp"),
    new String[] {"dns://dns.server.com", "_ldap._tcp"});
}