@Test
    public void testErrorCountsIncludesNone() {
        assertEquals(1, createAddOffsetsToTxnResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createAddPartitionsToTxnResponse((short) 3).errorCounts().get(Errors.NONE));
        assertEquals(2, createAddPartitionsToTxnResponse((short) 4).errorCounts().get(Errors.NONE));
        assertEquals(1, createAlterClientQuotasResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createAlterConfigsResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createAlterPartitionReassignmentsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createAlterReplicaLogDirsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createApiVersionResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createBrokerHeartbeatResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createBrokerRegistrationResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createControlledShutdownResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createCreateAclsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createCreatePartitionsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createCreateTokenResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createCreateTopicResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createDeleteAclsResponse(DELETE_ACLS.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createDeleteGroupsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createDeleteTopicsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createDescribeAclsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createDescribeClientQuotasResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createDescribeConfigsResponse(DESCRIBE_CONFIGS.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createDescribeGroupResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createDescribeLogDirsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createDescribeTokenResponse(DESCRIBE_DELEGATION_TOKEN.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(2, createElectLeadersResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createEndTxnResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createExpireTokenResponse().errorCounts().get(Errors.NONE));
        assertEquals(3, createFetchResponse(123).errorCounts().get(Errors.NONE));
        assertEquals(1, createFindCoordinatorResponse(FIND_COORDINATOR.oldestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createFindCoordinatorResponse(FIND_COORDINATOR.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createHeartBeatResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createIncrementalAlterConfigsResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createJoinGroupResponse(JOIN_GROUP.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(2, createLeaderAndIsrResponse((short) 4).errorCounts().get(Errors.NONE));
        assertEquals(2, createLeaderAndIsrResponse((short) 5).errorCounts().get(Errors.NONE));
        assertEquals(3, createLeaderEpochResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createLeaveGroupResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createListGroupsResponse(LIST_GROUPS.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createListOffsetResponse(LIST_OFFSETS.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createListPartitionReassignmentsResponse().errorCounts().get(Errors.NONE));
        assertEquals(3, createMetadataResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createOffsetCommitResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createOffsetDeleteResponse().errorCounts().get(Errors.NONE));
        assertEquals(3, createOffsetFetchResponse(OFFSET_FETCH.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createProduceResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createRenewTokenResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createSaslAuthenticateResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createSaslHandshakeResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createStopReplicaResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createSyncGroupResponse(SYNC_GROUP.latestVersion()).errorCounts().get(Errors.NONE));
        assertEquals(1, createTxnOffsetCommitResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createUpdateMetadataResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createWriteTxnMarkersResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createShareGroupHeartbeatResponse().errorCounts().get(Errors.NONE));
        assertEquals(1, createShareGroupDescribeResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createShareFetchResponse().errorCounts().get(Errors.NONE));
        assertEquals(2, createShareAcknowledgeResponse().errorCounts().get(Errors.NONE));
    }
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