private static void throwExceptionForIllegalTestSetup() {
        throw new IllegalStateException(
            "test setup error: must define both mock and wrapper consumers or both mock and wrapper functions");
    }
@param wrapper the wrapper
@return the underlying delegate for the given wrapper
server-common/src/test/java/org/apache/kafka/server/immutable/DelegationChecker.java