@Test
 public void stoppedAtWithMillisWorks() throws Exception {
   ReadableInstant instant = new DateMidnight(2012, 3, 18);
   assertEquals(instant.getMillis(), JodaClocks.stoppedAt(instant.getMillis()).nowInMillis());
   assertEquals(
       instant.getMillis(), JodaClocks.stoppedAt(instant.getMillis()).nowAsDateTime().getMillis());
 }
 @Test
 public void startingInWithDurationWorks() throws Exception {
   ReadableInstant instant = new DateMidnight(2012, 3, 18);
   long offset = instant.getMillis() - System.currentTimeMillis();
   testRunningClock(JodaClocks.startingIn(new Duration(offset)), instant.getMillis());
 }
 @Test
 public void startingAtWithInstantWorks() throws Exception {
   ReadableInstant instant = new DateMidnight(2012, 3, 18);
   testRunningClock(JodaClocks.startingAt(instant), instant.getMillis());
 }
 @Test
 public void realClockWorks() throws InterruptedException {
   testRunningClock(JodaClocks.realClock(), System.currentTimeMillis());
 }