@Deprecated
    @Nonnull
    public static Builder newBuilder(@Nonnull Time ttl) {
        return new Builder(ttl);
    }
@Test
    void testStateTtlConfigBuildWithNonPositiveCleanupIncrementalSize() {
        List<Integer> illegalCleanUpSizes = Arrays.asList(0, -2);

        for (Integer illegalCleanUpSize : illegalCleanUpSizes) {
            assertThatThrownBy(
                            () ->
                                    StateTtlConfig.newBuilder(Time.seconds(1))
                                            .cleanupIncrementally(illegalCleanUpSize, false)
                                            .build())
                    .isInstanceOf(IllegalArgumentException.class);
        }
    }