public void testDoubleClose() throws IOException {
  Path tempPath=createTempDir();
  Directory dir=getDirectory(tempPath);
  Lock l=dir.obtainLock("commit");
  l.close();
  l.close();
  dir.close();
}

public void testDoubleClose ( ) throws IOException { Path tempPath = createTempDir ( ) ; Directory dir = getDirectory ( tempPath ) ; Lock l = dir . obtainLock ( "commit" ) ; l . close ( ) ; l . close ( ) ; dir . close ( ) ; }
test closing locks twice
