public void testFileInUse() throws FileNotFoundException
{
SpoolFile sf = new SpoolFile(DIR_NAME + FILE_NAME);
sf.acquire("holder");
assertTrue("The file has holder. It must be in use.", sf.inUse());
sf.release("holder");
assertFalse("The file has no holder. It should not be in use.", sf.inUse());
sf.delete();