public void acquireWriteLock(String key) {
        getLock(key).writeLock().lock();
    }
@Test
    public void shouldNotEnforceMutualExclusionOfWriteLockForDifferentNames() throws InterruptedException {
        readWriteLock.acquireWriteLock("foo");

        new Thread(() -> {
            readWriteLock.acquireWriteLock("bar");
            numberOfLocks++;
        }).start();

        Thread.sleep(1000);

        assertThat(numberOfLocks, is(1));
    }