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

  final ActivePassiveConnectionStrategy strategy = new ActivePassiveConnectionStrategy();
  strategy.initialize(actual, ldapURL -> true);
  Assert.assertEquals(
    StreamSupport.stream(strategy.spliterator(), false).collect(Collectors.toList()), Arrays.asList(expected));
  Assert.assertEquals(
    StreamSupport.stream(strategy.spliterator(), false).collect(Collectors.toList()), Arrays.asList(expected));
  Assert.assertEquals(
    StreamSupport.stream(strategy.spliterator(), false).collect(Collectors.toList()), Arrays.asList(expected));
  Assert.assertEquals(
    StreamSupport.stream(strategy.spliterator(), false).collect(Collectors.toList()), Arrays.asList(expected));
  Assert.assertEquals(
    StreamSupport.stream(strategy.spliterator(), false).collect(Collectors.toList()), Arrays.asList(expected));
}