@Override
    public boolean replace(K key, V oldValue, V newValue) {
        // will throw UnsupportedOperationException; delegate anyway for testability
        return underlying().replace(key, oldValue, newValue);
    }
@Test
    public void testDelegationOfUnsupportedFunctionReplaceWhenMappedToAnyValue() {
        new PCollectionsHashMapWrapperDelegationChecker<>()
            .defineMockConfigurationForUnsupportedFunction(mock -> mock.replace(eq(this), eq(this)))
            .defineWrapperUnsupportedFunctionInvocation(wrapper -> wrapper.replace(this, this))
            .doUnsupportedFunctionDelegationCheck();
    }