@Override
    public boolean remove(Object o) {
        // will throw UnsupportedOperationException
        return underlying().remove(o);
    }
@Test
    public void testDelegationOfUnsupportedFunctionRemove() {
        new PCollectionsTreeSetWrapperDelegationChecker<>()
                .defineMockConfigurationForUnsupportedFunction(mock -> mock.remove(eq(this)))
                .defineWrapperUnsupportedFunctionInvocation(wrapper -> wrapper.remove(this))
                .doUnsupportedFunctionDelegationCheck();
    }