@Test
public void testSingleWriteLock() {
final LockAdviser lockAdviser = LockAdviser.instance(lockDir);
final Lock wlock1;
final Lock wlock2;
try {
wlock1 = lockAdviser.obtainWriteLock();
wlock2 = lockAdviser.obtainWriteLock();
} catch (Exception e) {
e.printStackTrace();