@Test(groups = "conn", dataProvider = "urls")
public void hasNext(final String actual, final LdapURL[] expected)
{

  final RandomConnectionStrategy strategy = new RandomConnectionStrategy();
  strategy.initialize(actual, ldapURL -> true);
  final Iterator<LdapURL> iter = strategy.iterator();
  int i = 0;
  while (iter.hasNext()) {
    iter.next();
    i++;
  }
  Assert.assertEquals(i, expected.length);
}