public int getCurrentTableCapacity() {
        return table.length;
    }
@Test
    void testSizeComparator() {
        KeyMap<String, String> map1 = new KeyMap<>(5);
        KeyMap<String, String> map2 = new KeyMap<>(80);

        assertThat(map1.getCurrentTableCapacity()).isLessThan(map2.getCurrentTableCapacity());

        assertThat(KeyMap.CapacityDescendingComparator.INSTANCE.compare(map1, map1)).isZero();
        assertThat(KeyMap.CapacityDescendingComparator.INSTANCE.compare(map2, map2)).isZero();
        assertThat(KeyMap.CapacityDescendingComparator.INSTANCE.compare(map1, map2)).isPositive();
        assertThat(KeyMap.CapacityDescendingComparator.INSTANCE.compare(map2, map1)).isNegative();
    }