question: private void testLockDir ( File lockDir ) throws IOException { if ( ! lockDir . exists ( ) ) { throw new IOException ( "Could not find lockDir: " + lockDir . getAbsolutePath ( ) ) ; } if ( ! lockDir . canWrite ( ) ) { throw new IOException ( "Could not write to lockDir: " + lockDir . getAbsolutePath ( ) ) ; } }
target:  Tests that we can write to the lock directory.