Java, Eclipse Collections, Open Source, Programming, Software Development.
Fruit.BANANA, Fruit.APPLE, Fruit.CHERRY); // Sorting the List we can more predictably compare the contents List<Fruit> sortedList = list.toSortedList(); Assertions.assertEquals( sortedList, List.of(Fruit.APPLE, Fruit.BANANA, Fruit.BANANA, Fruit.CHERRY)); Assertions.assertNotEquals( sortedList,