DESCRIPTION OF TEST testGetLock

Check with the second slave got lock (Allowed)

Slave0: Create a file
Slave0: Open on reading, set lock on reading
Slave1: Open file for reading, check the opportuinity to set lock on reading, expect LockType.UNLOCK
Slave1: Close the file
Slave0: Close the file

Slave0: Open on reading, set lock on reading
Slave1: Open file for writing, check the opportuinity to set lock on writing, expect LockType.LOCKREAD
Slave1: Close the file
Slave0: Close the file

Slave0: Open on writing, set lock on writing
Slave1: Open file for reading, check the opportuinity to set lock on reading, expect LockType.LOCKWRITE
Slave1: Close the file
Slave0: Close the file

Slave0: Open on writing, set lock on writing
Slave1: Open file for writing, check the opportuinity to set lock on writing, expect LockType.LOCKWRITE
Slave1: Close the file
Slave0: Close the file

Now, window be gone.