private ShareAcknowledgeRequest createShareAcknowledgeRequest(short version) {
        ShareAcknowledgeRequestData data = new ShareAcknowledgeRequestData()
                .setMemberId(Uuid.randomUuid().toString())
                .setTopics(singletonList(new ShareAcknowledgeRequestData.AcknowledgeTopic()
                        .setTopicId(Uuid.randomUuid())
                        .setPartitions(singletonList(new ShareAcknowledgeRequestData.AcknowledgePartition()
                                .setPartitionIndex(0)
                                .setAcknowledgementBatches(singletonList(new ShareAcknowledgeRequestData.AcknowledgementBatch()
                                        .setFirstOffset(0)
                                        .setLastOffset(0)
                                        .setAcknowledgeTypes(Collections.singletonList((byte) 0))))))));
        return new ShareAcknowledgeRequest.Builder(data).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