public void doUnsupportedFunctionDelegationCheck() {
        if (mockConfigurationFunction == null || wrapperFunctionApplier == null) {
            throwExceptionForIllegalTestSetup();
        }

        when(mockConfigurationFunction.apply(mock)).thenCallRealMethod();
        assertThrows(UnsupportedOperationException.class, () -> wrapperFunctionApplier.apply(wrapper),
            "Expected to Throw UnsupportedOperationException");
    }
@param wrapper the wrapper
@return the underlying delegate for the given wrapper
server-common/src/test/java/org/apache/kafka/server/immutable/DelegationChecker.java