public class AscendingClockTest extends TestCase {
public void testMillis() throws InterruptedException {
long start, last;
last = start = System.currentTimeMillis() + 10000;
AscendingClock c = new AscendingClock(start);
for (int i = 0; i < 10000; i++) {
long t = c.time();
assertTrue(t > last);
last = t;
}
}