setAssertNoUnrefencedFilesOnClose

setWrapLockFactory

public void setWrapLockFactory(boolean v)

Set to false if you want to return the pure lockfactory
and not wrap it with MockLockFactoryWrapper.

Be careful if you turn this off: MockDirectoryWrapper might
no longer be able to detect if you forget to close an IndexWriter,
and spit out horribly scary confusing exceptions instead of
simply telling you that.