public static ApiVersionsResponse createApiVersionsResponse(
            int throttleTimeMs,
            ApiVersionsResponseData.ApiVersionCollection apiVersions,
            Features<SupportedVersionRange> latestSupportedFeatures,
            boolean zkMigrationEnabled
    ) {
        return new ApiVersionsResponse.Builder().
            setThrottleTimeMs(throttleTimeMs).
            setApiVersions(apiVersions).
            setSupportedFeatures(latestSupportedFeatures).
            setFinalizedFeatures(Collections.emptyMap()).
            setFinalizedFeaturesEpoch(ApiVersionsResponse.UNKNOWN_FINALIZED_FEATURES_EPOCH).
            setZkMigrationEnabled(zkMigrationEnabled).
            build();
    }
Returns true if both the iterators have same set of elements irrespective of order and duplicates.

@param iterator1 first iterator.
@param iterator2 second iterator.
@param <T>       type of element in the iterators.
clients/src/test/java/org/apache/kafka/test/TestUtils.java