Java, Eclipse Collections, Open Source, Programming, Software Development.
Set.of(Fruit.APPLE, Fruit.BANANA, Fruit.CHERRY)); Assertions.assertNotEquals( set, Set.of(Fruit.APPLE, Fruit.BANANA)); } Converting to a Bag for Equality Test Using Eclipse Collections MutableList as a source type, we can convert the List to a Bag using toBag. @Test public void