private ShareFetchRequest createShareFetchRequest(short version) {
        ShareFetchRequestData data = new ShareFetchRequestData()
                .setGroupId("group")
                .setMemberId(Uuid.randomUuid().toString())
                .setTopics(singletonList(new ShareFetchRequestData.FetchTopic()
                        .setTopicId(Uuid.randomUuid())
                        .setPartitions(singletonList(new ShareFetchRequestData.FetchPartition()
                                .setPartitionIndex(0)))));
        return new ShareFetchRequest.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