@Test
public void testSleepTooManyNanos() {

	Duration d = new Duration(0, 500000000);
	long t = System.nanoTime();
	assertTrue(d.sleep());
	assertTrue(greaterThanEquals(System.nanoTime(), t + d.toNSec()));
}