void () { for (int i : new int[]{0, 1, 2, 3, ARRAY_THRESHOLD, ARRAY_THRESHOLD + 1, ARRAY_THRESHOLD + 5}) { var expected = createMap(i); var map = createMap(i); var reversedMap = createMapReversed(i); assertEquals(expected.hashCode(), map.hashCode()); assertEquals(expected, map); assertEquals(expected.hashCode(), reversedMap.hashCode()); assertEquals(expected, reversedMap); } }