private OffsetFetchRequest createOffsetFetchRequest(short version, boolean requireStable) {
        if (version < 8) {
            return new OffsetFetchRequest.Builder(
                "group1",
                requireStable,
                singletonList(new TopicPartition("test11", 1)),
                false)
                .build(version);
        }
        return new OffsetFetchRequest.Builder(
                Collections.singletonMap(
                "group1",
                singletonList(new TopicPartition("test11", 1))),
            requireStable,
            false)
            .build(version);
    }
Check that all error codes in the response get included in {@link AbstractResponse#errorCounts()}.
clients/src/test/java/org/apache/kafka/common/requests/RequestResponseTest.java