private DescribeClusterResponse createDescribeClusterResponse() {
        return new DescribeClusterResponse(
                new DescribeClusterResponseData()
                        .setBrokers(new DescribeClusterBrokerCollection(
                                singletonList(new DescribeClusterBroker()
                                        .setBrokerId(1)
                                        .setHost("localhost")
                                        .setPort(9092)
                                        .setRack("rack1")).iterator()))
                        .setClusterId("clusterId")
                        .setControllerId(1)
                        .setClusterAuthorizedOperations(10));
    }
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