@Test
public void testLock() throws Exception {
final SomeData data = new SomeData();
data.write();
data.read();
QueueLock qlock = new MockQueueLock();
final ReadWriteLock locker = new DistributedReadWriteLock(qlock, "locker1".getBytes());
Lock readLock = locker.readLock();
Lock writeLock = locker.writeLock();
readLock.lock();