Java, Eclipse Collections, Open Source, Programming, Software Development.
Lists.mutable.of(Fruit.BANANA, Fruit.BANANA, Fruit.APPLE, Fruit.CHERRY); // Using a Set we can test unique contents without caring for order Set<Fruit> set = list.toSet(); Assertions.assertEquals( set, Set.of(Fruit.CHERRY, Fruit.BANANA, Fruit.APPLE)); Assertions.assertEquals( set,