### Question:
SystemTimeProvider implements TimeProvider { @Override public long getTime() throws TimeProviderException { return Instant.now().getEpochSecond(); }  @Override long getTime();  }### Answer:
@Test public void testProvidesTime() { long currentTime = Instant.now().getEpochSecond(); TimeProvider time = new SystemTimeProvider(); long providedTime = time.getTime(); assertTrue(currentTime - 5 <= providedTime); assertTrue(providedTime <= currentTime + 5); assertEquals(10, String.valueOf(currentTime).length()); }