public Optional<FailureExpectation> getFailure() {
        return Optional.ofNullable(failure);
    }
@return The expected failure, if this expectation is a failure expectation.
smithy-smoke-test-traits/src/main/java/software/amazon/smithy/smoketests/traits/Expectation.java