Note: ./src/main/java/MysteryColorAnalyzerImpl.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
No sample tests.
Do you know what is a enum?
If you don't know what is it, perhaps you should go look it up ;-)
Color is a enum, so...
Some clarification would be needed about distinct colors. What makes a color a distinct? As far as I found on google it is quite subjective since it depends on a person's perception?
So what features of a color have to be searched to find it distinct?
It's also effortless: you can just wrap the whole test with a for loop.
I added random tests as well.
Is it good practice to run the random test multiple times with different random sets?
You're probably right. I'll add a random and non random tests just in case the random generator does a weird data collection which might let some incompleteness slip through.
Needs random tests.