@Test
    public void testIsIncompatibleWith() {
        assertFalse(new SupportedVersionRange((short) 1, (short) 1).isIncompatibleWith((short) 1));
        assertFalse(new SupportedVersionRange((short) 1, (short) 4).isIncompatibleWith((short) 2));
        assertFalse(new SupportedVersionRange((short) 1, (short) 4).isIncompatibleWith((short) 1));
        assertFalse(new SupportedVersionRange((short) 1, (short) 4).isIncompatibleWith((short) 4));

        assertTrue(new SupportedVersionRange((short) 2, (short) 3).isIncompatibleWith((short) 1));
        assertTrue(new SupportedVersionRange((short) 2, (short) 3).isIncompatibleWith((short) 4));
    }
Unit tests for the SupportedVersionRange class.
Along the way, this suite also includes extensive tests for the base class BaseVersionRange.
clients/src/test/java/org/apache/kafka/common/feature/SupportedVersionRangeTest.java