private <T>void assertContains(final T[] expectedEntries,final Collection<T> collection){
  assertEquals(expectedEntries.length,collection.size());
  for (  T t : expectedEntries) {
    assertTrue(collection.contains(t));
  }
}

private < T > void assertContains ( final T [ ] expectedEntries , final Collection < T > collection ) { assertEquals ( expectedEntries . length , collection . size ( ) ) ; for ( T t : expectedEntries ) { assertTrue ( collection . contains ( t ) ) ; } }
checks that the given collection contains exactly all of the exptectedentries , but none more .
