public List<HttpMalformedRequestTestCase> generateTestCasesFromParameters() {
        if (testParameters.isEmpty()) {
            HttpMalformedRequestTestCase.Builder builder = HttpMalformedRequestTestCase.builder()
                    .id(getId())
                    .protocol(getProtocol())
                    .request(request)
                    .response(response)
                    .tags(getTags());
            getDocumentation().ifPresent(builder::documentation);
            return ListUtils.of(builder.build());
        }

        int paramLength = testParameters.values()
                .stream()
                .findFirst()
                .map(List::size)
                .orElseThrow(IllegalStateException::new);
        final List<HttpMalformedRequestTestCase> testCases = new ArrayList<>(paramLength);
        for (int i = 0; i < paramLength; i++) {
            final SimpleCodeWriter writer = new SimpleCodeWriter();
            for (Map.Entry<String, List<String>> e : testParameters.entrySet()) {
                writer.putContext(e.getKey(), e.getValue().get(i));
            }

            HttpMalformedRequestTestCase.Builder builder = HttpMalformedRequestTestCase.builder()
                    .id(String.format(getId() + "_case%d", i))
                    .protocol(getProtocol())
                    .tags(getTags().stream().map(writer::format).collect(Collectors.toList()));
            getDocumentation().map(writer::format).ifPresent(builder::documentation);

            testCases.add(builder.request(interpolateRequest(request, writer))
                    .response(interpolateResponse(response, writer))
                    .build());
        }
        return testCases;
    }
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