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

  final RoundRobinConnectionStrategy strategy = new RoundRobinConnectionStrategy();
  strategy.initialize(actual, ldapURL -> true);
  for (int i = 0; i < count; i++) {
    strategy.iterator();
  }
  Assert.assertEquals(
    StreamSupport.stream(strategy.spliterator(), false).collect(Collectors.toList()), Arrays.asList(expected));
}