@Override
    public Node toNode() {
        ObjectNode.Builder builder = Node.objectNodeBuilder()
                .withMember(ID, this.getId())
                .withOptionalMember(PARAMS, this.getParams())
                .withOptionalMember(VENDOR_PARAMS, this.getVendorParams())
                .withOptionalMember(VENDOR_PARAMS_SHAPE,
                        this.getVendorParamsShape().map(ShapeId::toString).map(Node::from))
                .withMember(EXPECT, this.getExpectation());

        if (!this.tags.isEmpty()) {
            builder.withMember(TAGS, ArrayNode.fromStrings(tags));
        }

        return builder.build();

    }
Get the expected response from the service call for this test case.

<p>This expectation can be either a successful response, any error
response, or a specific error response.

@return Returns expectation.
smithy-smoke-test-traits/src/main/java/software/amazon/smithy/smoketests/traits/SmokeTestCase.java