Hello.
This is on page 478, subtitled "Working with Set Methods":
Like a List, you can create an immutable Set in one line or make a copy of an existing one.
Those are the only extra methods you need to know for the Set interface for the exam!
Nowhere in the text it mentions that the Set.of() method as given will throw an exception. Other code examples mark lines with errors.
"Duplicate elements passed to a static factory method result in IllegalArgumentException."