private ReadShareGroupStateSummaryRequest createReadShareGroupStateSummaryRequest(short version) {
        ReadShareGroupStateSummaryRequestData data = new ReadShareGroupStateSummaryRequestData()
                .setGroupId("group")
                .setTopics(Collections.singletonList(new ReadShareGroupStateSummaryRequestData.ReadStateSummaryData()
                        .setTopicId(Uuid.randomUuid())
                        .setPartitions(Collections.singletonList(new ReadShareGroupStateSummaryRequestData.PartitionData()
                                .setPartition(0)))));
        return new ReadShareGroupStateSummaryRequest.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