@Test
public void ensure_that_two_different_locks_are_returned_when_threshold_is_reached() {

    // given
    ReentrantReadWriteLockGroup locks = new ReentrantReadWriteLockGroup(true, 1);
    // when
    ReentrantReadWriteLock firstLockForOneValue = locks.getLock("1");
    ReentrantReadWriteLock firstLockForTwoValue = locks.getLock("2");
    ReentrantReadWriteLock secondLockForOneValue = locks.getLock("1");
    ReentrantReadWriteLock secondLockForTwoValue = locks.getLock("2");
    // then
    assertNotEquals(firstLockForOneValue, secondLockForOneValue);
    assertNotEquals(firstLockForTwoValue, secondLockForTwoValue);
}