### Question:
NtpTimeProvider implements TimeProvider { @Override public long getTime() throws TimeProviderException { try { TimeInfo timeInfo = client.getTime(ntpHost); return (long) Math.floor(timeInfo.getReturnTime() / 1000L); } catch (Exception e) { throw new TimeProviderException("Failed to provide time from NTP server. See nested exception.", e); } } NtpTimeProvider(String ntpHostname);  NtpTimeProvider(String ntpHostname, int timeout);   NtpTimeProvider(String ntpHostname, String dependentClass); private  NtpTimeProvider(String ntpHostname, int timeout, String dependentClass); @Override long getTime();  }### Answer:
@Test public void testProvidesTime() throws UnknownHostException { TimeProvider time = new NtpTimeProvider("pool.ntp.org"); long currentTime = time.getTime(); assertEquals(10, String.valueOf(currentTime).length()); }