FeatureControlManager buildFeatureControl(
        MetadataVersion metadataVersion,
        Optional<ZkMigrationState> zkMigrationState
    ) {
        FeatureControlManager featureControl = new FeatureControlManager.Builder()
            .setMetadataVersion(metadataVersion).build();
        zkMigrationState.ifPresent(migrationState ->
            featureControl.replay((ZkMigrationStateRecord) migrationState.toRecord().message()));
        return featureControl;
    }
This class is for testing the log message or exception produced by ActivationRecordsGenerator. For tests that
verify the semantics of the returned records, see QuorumControllerTest.
metadata/src/test/java/org/apache/kafka/controller/ActivationRecordsGeneratorTest.java