@Test
public void testGetReadLockCount() {

    int count = TestData.getScaleCount();
    final AtomicInteger finished = new AtomicInteger(0);
    Runnable runnable = new Runnable() {
        @Override
        public void run() {
            lock.readLock().lock();
            finished.incrementAndGet();
        }
    };
    for (int i = 0; i < count; i++) {
        new Thread(runnable).start();
    }
    while (finished.get() < count) {
        continue;
    }
    Assert.assertEquals(lock.getReadLockCount(), count);
}