How would you succinctly assert the equality of Collection elements, specifically a Set in JUnit 4?
Collection
Set
Check this article. One example from there:
@Test public void listEquality() { List expected = new ArrayList(); expected.add(5); List actual = new ArrayList(); actual.add(5); assertEquals(expected, actual); }