Thread t = new Thread(locker);
t.setDaemon(true);
t.start();
assertTrue("FileLocker locked file", lockedLatch.await(10, TimeUnit.SECONDS));
testee.start();
testee.stop();
}
/** Hacky attempt to "lock" a file. */
private static class FileLocker implements Runnable
{