@Test
public void unmodifiableSetForIteratorShouldReturnExpectedElements() {

    Set<Integer> values = Collect.unmodifiableSet(Arrays.asList(1, 2, 3, 42).iterator());
    assertThat(values).containsOnly(1, 2, 3, 42);
}