private static HttpMalformedRequestDefinition interpolateRequest(
            HttpMalformedRequestDefinition request,
            SimpleCodeWriter writer
    ) {
        HttpMalformedRequestDefinition.Builder requestBuilder = request.toBuilder()
                .headers(formatHeaders(writer, request.getHeaders()))
                .queryParams(request.getQueryParams().stream().map(writer::format).collect(Collectors.toList()));
        request.getBody().map(writer::format).ifPresent(requestBuilder::body);
        request.getUri().map(writer::format).ifPresent(requestBuilder::uri);
        return requestBuilder.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