@Test
public void ensure_that_calls_with_different_strings_returns_different_locks() {

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