public Result unwrap() {
            if (isInvalid()) {
                throw new Error(this);
            }

            return this;
        }
Throws an exception if the result is invalid, otherwise returns the result.

@return Returns the result if it is ok.
@throws Error if the result contains invalid events.
smithy-diff/src/main/java/software/amazon/smithy/diff/testrunner/SmithyDiffTestCase.java