Countdown { public boolean moreTimeRemaining() { return this.duration.toMillis() > 0; } Countdown(final Duration duration); void countDownByOneMinute(); boolean moreTimeRemaining();  }
@Test public void testMoreTimeRemaining() throws InterruptedException { final Countdown countDown = new Countdown(Duration.ofMinutes(1)); assertThat(countDown.moreTimeRemaining()).isTrue(); countDown.countDownByOneMinute(); assertThat(countDown.moreTimeRemaining()).isFalse(); }