static BrokerRegistrationRequestData.FeatureCollection brokerFeatures(
        MetadataVersion minVersion,
        MetadataVersion maxVersion
    ) {
        BrokerRegistrationRequestData.FeatureCollection features = new BrokerRegistrationRequestData.FeatureCollection();
        features.add(new BrokerRegistrationRequestData.Feature()
                         .setName(MetadataVersion.FEATURE_NAME)
                         .setMinSupportedVersion(minVersion.featureLevel())
                         .setMaxSupportedVersion(maxVersion.featureLevel()));
        return features;
    }
Create a broker features collection for use in a registration request. We only set MV. here.

@param minVersion    The minimum supported MV.
@param maxVersion    The maximum supported MV.
metadata/src/test/java/org/apache/kafka/controller/QuorumControllerIntegrationTestUtils.java