public static int hashToIndex(int hash, int length) {
        checkPositive("length", length);

        if (hash == Integer.MIN_VALUE) {
            return 0;
        }

        return abs(hash) % length;
    }
@Test
    public void hashToIndex_whenHashIntegerMinValue() {
        int result = hashToIndex(Integer.MIN_VALUE, 100);
        assertEquals(0, result);
    }