private static void assertPreviousTaskToSSPAssignment(Map<TaskName, List<SystemStreamPartition>> expected,
      Map<TaskName, List<SystemStreamPartition>> actual) {
    assertEquals(expected.size(), actual.size());
    expected.forEach((taskName, sspList) -> assertContentsEqualNoDuplicates(sspList, actual.get(taskName)));
  }
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