public void testLockBehaviourWithDIfferentThread() throws Exception {
final Object id = new String("id");
final ReentrantReadWriteWriteShareLock lock =
new ReentrantReadWriteWriteShareLock();
assertTrue(lock.attemptLock(LockMode.EX_SH, 0, id));
Locker locker = new Locker(lock, id, true, true, "R:S:E", "P:P:P");
Thread t = new Thread(locker);
t.start();
t.join();
assertTrue(lock.attemptLock(LockMode.EX_SH, 0, id));
locker = new Locker(lock, id, false, true, "R:S:E", "P:F:F");
Thread t1 = new Thread(locker);
t1.start();
t1.join();
}