### Question:
LicenseSet implements Iterable<License> { public List<License> getLicenses() { return licenses; } LicenseSet(List<License> licenses); List<License> getLicenses(); void acceptAll(); boolean isAccepted(); Iterator<License> iterator(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void shouldReturnLicensesInOrder() { List<License> result = defaultLicenseSet.getLicenses(); assertEquals(result, defaultLicenses); }