public boolean containsValue(final int value)
    {
        boolean found = false;
        final int missingValue = this.missingValue;
        if (missingValue != value)
        {
            final int[] entries = this.entries;
            @DoNotSub final int length = entries.length;
            @DoNotSub int remaining = size;

            for (@DoNotSub int valueIndex = 1; remaining > 0 && valueIndex < length; valueIndex += 2)
            {
                final int existingValue = entries[valueIndex];
                if (missingValue != existingValue)
                {
                    if (existingValue == value)
                    {
                        found = true;
                        break;
                    }
                    --remaining;
                }
            }
        }

        return found;
    }
@Test
    void shouldNotContainValueForAMissingEntry()
    {
        assertFalse(map.containsValue(1));
    }