@Test
public void ensure_that_a_lock_will_not_be_removed_if_it_is_the_latest_returned_one() {

    // given
    ReentrantReadWriteLockGroup locks = new ReentrantReadWriteLockGroup(true, 1);
    // when
    ReentrantReadWriteLock lock1 = locks.getLock("1");
    ReentrantReadWriteLock lock2 = locks.getLock("1");
    // then
    assertEquals(lock1, lock2);
}