private void assertDNSetEquals(SortedSet<DN> actual,String... expected){
  String[] actualStrings=new String[actual.size()];
  int i=0;
  for (  DN dn : actual) {
    actualStrings[i]=dn.toString();
    i++;
  }
  Assert.assertEqualsNoOrder(actualStrings,expected);
}

private void assertDNSetEquals ( SortedSet < DN > actual , String ... expected ) { String [ ] actualStrings = new String [ actual . size ( ) ] ; int i = 0 ; for ( DN dn : actual ) { actualStrings [ i ] = dn . toString ( ) ; i ++ ; } Assert . assertEqualsNoOrder ( actualStrings , expected ) ; }
asserts that the actual set of dns contains the expected values .
