@Test(expected = UnsupportedOperationException.class)
public void unmodifiableSetForIteratorShouldRaiseExceptionUponModification() {

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