private AddRaftVoterRequest createAddRaftVoterRequest(short version) {
        return new AddRaftVoterRequest(new AddRaftVoterRequestData().
            setClusterId("FmRMoH-iTCSFNnzgpkWT2A").
            setTimeoutMs(60_000).
            setVoterId(1).
            setVoterDirectoryId(Uuid.fromString("DZG26STKRxaelDpg2wqsXw")).
            setListeners(new AddRaftVoterRequestData.ListenerCollection(
                Collections.singletonList(new AddRaftVoterRequestData.Listener().
                    setName("CONTROLLER").
                    setHost("localhost").
                    setPort(8080)).iterator())
            ), 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