@Override
    public Node toNode() {
        return Node.objectNodeBuilder()
                .withMember(MEDIA_TYPE, getMediaType())
                .withMember(ASSERTION,
                        ObjectNode.objectNodeBuilder()
                                .withOptionalMember(CONTENTS, getContents().map(StringNode::from))
                                .withOptionalMember(MESSAGE_REGEX, getMessageRegex().map(StringNode::from))
                                .build())
                .build();
    }
Defines the response expected by an HttpMalformedRequest test case.
smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/HttpMalformedResponseBodyDefinition.java