private void valuesTester(final int treeSize,final Collection<String> values){
  int counter=0;
  for (  String value : values) {
    counter++;
  }
  assertEquals(treeSize,counter);
  assertEquals(treeSize,values.size());
}

private void valuesTester ( final int treeSize , final Collection < String > values ) { int counter = 0 ; for ( String value : values ) { counter ++ ; } assertEquals ( treeSize , counter ) ; assertEquals ( treeSize , values . size ( ) ) ; }
an internal helper method to do the real testing .
