Java, Eclipse Collections, Open Source, Programming, Software Development.
Assertions.assertEquals( simulatedBag, Map.of(Fruit.BANANA, 2L, Fruit.CHERRY, 1L, Fruit.APPLE, 1L)); Assertions.assertNotEquals( simulatedBag, Map.of(Fruit.BANANA, 1L, Fruit.CHERRY, 2L, Fruit.APPLE, 1L)); } Summary Comparing two Collections using equals tests a bunch of things simultaneously. Using