private static HttpMalformedResponseDefinition interpolateResponse(
            HttpMalformedResponseDefinition response,
            SimpleCodeWriter writer
    ) {
        HttpMalformedResponseDefinition.Builder responseBuilder =
                response.toBuilder().headers(formatHeaders(writer, response.getHeaders()));
        response.getBody()
                .map(responseBody -> {
                    HttpMalformedResponseBodyDefinition.Builder bodyBuilder = responseBody.toBuilder()
                            .mediaType(writer.format(responseBody.getMediaType()));
                    responseBody.getContents().map(writer::format).ifPresent(bodyBuilder::contents);
                    responseBody.getMessageRegex().map(writer::format).ifPresent(bodyBuilder::messageRegex);
                    return bodyBuilder.build();
                })
                .ifPresent(responseBuilder::body);
        return responseBuilder.build();
    }
Defines a parameterized test case for malformed HTTP requests.

This class is *not* preferred for code generation - use {@link HttpMalformedRequestTestCase}
instances instead, retrieved from {@link HttpMalformedRequestTestsTrait#getTestCases()}.
smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/ParameterizedHttpMalformedRequestTestCase.java