private UpdateRaftVoterRequest createUpdateRaftVoterRequest(short version) {
        return new UpdateRaftVoterRequest(new UpdateRaftVoterRequestData().
                setClusterId("FmRMoH-iTCSFNnzgpkWT2A").
                setVoterId(1).
                setVoterDirectoryId(Uuid.fromString("DZG26STKRxaelDpg2wqsXw")).
                setListeners(new UpdateRaftVoterRequestData.ListenerCollection(
                    Collections.singletonList(new UpdateRaftVoterRequestData.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