@PublicEvolving
    public static AIMDScalingStrategyBuilder builder(int rateThreshold) {
        return new AIMDScalingStrategyBuilder(rateThreshold);
    }
@Test
    void testInvalidDecreaseFactor() {
        assertThatExceptionOfType(IllegalArgumentException.class)
                .isThrownBy(
                        () ->
                                AIMDScalingStrategy.builder(100)
                                        .setIncreaseRate(1)
                                        .setDecreaseFactor(0)
                                        .build())
                .withMessageContaining("decreaseFactor must be strictly between 0.0 and 1.0.");

        assertThatExceptionOfType(IllegalArgumentException.class)
                .isThrownBy(
                        () ->
                                AIMDScalingStrategy.builder(100)
                                        .setIncreaseRate(1)
                                        .setDecreaseFactor(1.0)
                                        .build())
                .withMessageContaining("decreaseFactor must be strictly between 0.0 and 1.0.");
    }