@Test
public void testComputeForZeroDayDiffWhenCacheFactorIsPositive()
{

    // Given
    final Integer aPositiveCachingFactor = 3;
    final Date endingDate = new Date();
    final long expectedTtl = DEFAULT_MULTIPLIER * aPositiveCachingFactor;
    // When
    when( systemSettingManager.getSystemSetting(ANALYTICS_CACHE_PROGRESSIVE_TTL_FACTOR) )
        .thenReturn( aPositiveCachingFactor );
    final long actualTtl = new TimeToLive( endingDate, aPositiveCachingFactor ).compute();
    // Then
    assertThat( actualTtl, is( equalTo( expectedTtl ) ) );
}