// validate that our thread didn't throw interrupted exception
assertNull(result.getThrown());
// validate that the thread is still interrupted
jobQueue.invokeAndWait(new FailIfNotInterruptedRunnable());
}
/**
* Wait a bit to give a chance for thread contention.
*/