@Test
    public void testAllVersionsHaveSchemas() {
        for (ApiMessageType type : ApiMessageType.values()) {
            assertEquals(0, type.lowestSupportedVersion());

            assertEquals(type.requestSchemas().length, type.responseSchemas().length,
                    "request and response schemas must be the same length for " + type.name());
            for (Schema schema : type.requestSchemas())
                assertNotNull(schema);
            for (Schema schema : type.responseSchemas())
                assertNotNull(schema);

            assertEquals(type.highestSupportedVersion(true) + 1, type.requestSchemas().length);
        }
    }
Kafka currently supports direct upgrades from 0.8 to the latest version. As such, it has to support all apis
starting from version 0 and we must have schemas from the oldest version to the latest.
clients/src/test/java/org/apache/kafka/common/message/ApiMessageTypeTest.java