cb.waitForTurn(2);
manager.readLock(owner2, res2);
cb.signalTurn(3);
cb.waitForTurn(5);
synchronized (manager.getLock(res1)) {
cb.signalTurn(6);
manager.writeLock(owner2, res1);
}
} catch (LockException le) {
assertEquals(le.getCode(), LockException.CODE_DEADLOCK_VICTIM);
deadlockCnt++;