@Test
public void testInterruptedSleep() {

    // interrupt this thread, so sleeping will throw.
    Thread.currentThread().interrupt();
    // try to sleep.  it shouldn't throw...
    sleeper.sleepSeconds(1);
    // ...and the thread should still be flagged as interrupted.
    assertTrue(Thread.interrupted()); // this checks & clears the flag.
}