private static <T> void assertContentsEqualNoDuplicates(List<T> expected, List<T> actual) {
    Set<T> expectedSet = ImmutableSet.copyOf(expected);
    Set<T> actualSet = ImmutableSet.copyOf(actual);
    assertEquals(expectedSet.size(), expected.size());
    assertEquals(actualSet.size(), actual.size());
    assertEquals(expectedSet, actualSet);
  }
Order of SSPs in values of the map shouldn't matter, and the order is also non-deterministic, so just check the
contents of the lists.
samza-core/src/test/java/org/apache/samza/coordinator/TestJobModelHelper.java