@Test
public void testComputeForOneDayBeforeWhenCacheFactorIsPositive()
{

    // Given
    final int oneDayDiff = 1;
    final Integer aPositiveCachingFactor = 2;
    final Date endingDate = calculateDateFrom( new Date(), minus( oneDayDiff ), DATE );
    final long expectedTtl = aPositiveCachingFactor * oneDayDiff;
    // When
    final long actualTtl = new TimeToLive( endingDate, aPositiveCachingFactor ).compute();
    // Then
    assertThat( actualTtl, is( equalTo( expectedTtl ) ) );
}