question: public void testInvalidAfterClose ( ) throws IOException { Path tempPath = createTempDir ( ) ; Directory dir = getDirectory ( tempPath ) ; Lock l = dir . obtainLock ( "commit" ) ; l . close ( ) ; expectThrows ( AlreadyClosedException . class , null ) ; dir . close ( ) ; }
target:  Test ensureValid throws exception after close 