private EndQuorumEpochRequest createEndQuorumEpochRequest(short version) {
        EndQuorumEpochRequestData data = new EndQuorumEpochRequestData()
                .setClusterId("clusterId")
                .setTopics(singletonList(new EndQuorumEpochRequestData.TopicData()
                        .setPartitions(singletonList(new EndQuorumEpochRequestData.PartitionData()
                                .setLeaderEpoch(0)
                                .setLeaderId(1)
                                .setPartitionIndex(2)
                                .setPreferredSuccessors(asList(0, 1, 2))))
                        .setTopicName("topic1")));
        return new EndQuorumEpochRequest.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