public static HttpMalformedResponseBodyDefinition fromNode(Node node) {
        HttpMalformedResponseBodyDefinition.Builder builder = builder();
        ObjectNode o = node.expectObjectNode();
        builder.mediaType(o.expectStringMember(MEDIA_TYPE).getValue());
        ObjectNode assertion = o.expectObjectMember(ASSERTION);
        assertion.getStringMember(CONTENTS).ifPresent(stringNode -> builder.contents(stringNode.getValue()));
        assertion.getStringMember(MESSAGE_REGEX).ifPresent(stringNode -> builder.messageRegex(stringNode.getValue()));
        return builder.build();
    }
Defines the response expected by an HttpMalformedRequest test case.
smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/HttpMalformedResponseBodyDefinition.java