### Question:
NtpTime { public long getTime() { return System.currentTimeMillis() + timeOffset; } NtpTime(); long getTime(); @PostConstruct void start(); @PreDestroy void shutdown();  }### Answer:
@Test void getTimeTest() { ntpTime = new NtpTime(); ntpTime.start(); long freshTime = ntpTime.getTime(); assertTrue(freshTime > currentTime); log.info("now : long = {} / formatted = {}", freshTime, dateFormat.format(freshTime)); }