@ParameterizedTest
    @ValueSource(strings = {"3.6-IV0", "3.7-IV2", "3.9-IV1"})
    public void testNoLeaderEpochBumpOnIsrShrink(String metadataVersionString) {
        MetadataVersion metadataVersion = MetadataVersion.fromVersionString(metadataVersionString);
        testTriggerLeaderEpochBumpIfNeeded(
            createFooBuilder(metadataVersion).setTargetIsrWithBrokerStates(
                AlterPartitionRequest.newIsrToSimpleNewIsrWithBrokerEpochs(Arrays.asList(2, 1))),
            new PartitionChangeRecord(),
            NO_LEADER_CHANGE);
    }
Test that shrinking the ISR doesn't increase the leader epoch in later MVs.
metadata/src/test/java/org/apache/kafka/controller/PartitionChangeBuilderTest.java