@ParameterizedTest
    @ValueSource(strings = {"3.4-IV0", "3.5-IV2", "3.6-IV0", "3.7-IV2", "3.9-IV1"})
    public void testLeaderEpochBumpOnNewReplicaSetDisjoint(String metadataVersionString) {
        MetadataVersion metadataVersion = MetadataVersion.fromVersionString(metadataVersionString);
        testTriggerLeaderEpochBumpIfNeeded(
            createFooBuilder(metadataVersion).setTargetReplicas(Arrays.asList(2, 1, 4)),
            new PartitionChangeRecord(),
            1);
    }
Test that changing the replica set such that not all the old replicas remain
always results in a leader epoch increase.
metadata/src/test/java/org/apache/kafka/controller/PartitionChangeBuilderTest.java