public class SystemClockTest {
@Test
public void testLessThan2Millis() {
final long millis1 = new SystemClock().currentTimeMillis();
final long sysMillis = System.currentTimeMillis();
final long diff = sysMillis - millis1;
assertTrue("diff too large: " + diff, diff <= 1);