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