Out of curiosity, I wrote an own simple implementation of Set for a special case (where the set of all possible entries is fixed, but it\'s no enum
Use the Guava SetTestSuiteBuilder.
https://github.com/google/guava/blob/master/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java
Examples:
https://github.com/google/guava/blob/master/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java
It is released as part of "guava-testlib" in maven central.