@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (o == null || o.getClass() != getClass()) {
            return false;
        } else {
            return toNode().equals(((Expectation) o).toNode());
        }
    }
@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