@Test(groups = "conn", dataProvider = "urls")
public void populate(final LdapURLSet urlSet, final LdapURL[] expected)
  throws Exception
{

  Assert.assertTrue(urlSet.hasActiveUrls());
  Assert.assertEquals(urlSet.getActiveUrls().size(), expected.length);
  Assert.assertFalse(urlSet.hasInactiveUrls());
  Assert.assertEquals(urlSet.getInactiveUrls().size(), 0);
  for (int i = 0; i < expected.length; i++) {
    Assert.assertEquals(urlSet.getActiveUrls().get(i), expected[i]);
  }
}