TimeSourceProvider { public static synchronized TimeSource getTimeSource() { return timeSource; } private  TimeSourceProvider(); static synchronized TimeSource getTimeSource(); static synchronized void setTimeSource(TimeSource timeSource);  }
@Test public void givesSystemTimeSourceByDefault() { TimeSource timeSource = TimeSourceProvider.getTimeSource(); assertTrue(timeSource instanceof SystemTimeSource); }