@Test(groups = "dnParser", dataProvider = "invalidDNs")
public void testInvalidParsing(final String dn)
  throws Exception
{

  try {
    DnParser.getValue(dn, "");
    Assert.fail("Should have thrown IllegalArgumentException");
  } catch (Exception e) {
    Assert.assertEquals(e.getClass(), IllegalArgumentException.class);
  }
}