@@ -0,0 +1,1815 @@
+package io.quarkus.undertow.test;%0A%0Aimport static io.restassured.RestAssured.given;%0Aimport static org.hamcrest.Matchers.is;%0A%0Aimport java.io.IOException;%0Aimport java.io.PrintWriter;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.annotation.MultipartConfig;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport javax.servlet.http.Part;%0A%0Aimport org.apache.commons.codec.Charsets;%0Aimport org.jboss.shrinkwrap.api.ShrinkWrap;%0Aimport org.jboss.shrinkwrap.api.spec.JavaArchive;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.RegisterExtension;%0A%0Aimport io.quarkus.test.QuarkusUnitTest;%0A%0Apublic class MultipartConfigTestCase %7B%0A%0A    @RegisterExtension%0A    static QuarkusUnitTest runner = new QuarkusUnitTest()%0A            .setArchiveProducer(() -%3E ShrinkWrap.create(JavaArchive.class)%0A                    .addClasses(MultipartServlet.class));%0A%0A    @Test%0A    public void testMultipartConfig() %7B%0A        given().multiPart(%22file%22, %22random.txt%22, %22Some random file%22.getBytes(Charsets.UTF_8))%0A                .when().post(%22/foo%22).then()%0A                .statusCode(201)%0A                .body(is(%22OK%22));%0A    %7D%0A%0A    @WebServlet(%22/foo%22)%0A    @MultipartConfig()%0A    public static class MultipartServlet extends HttpServlet %7B%0A        @Override%0A        protected void doPost(HttpServletRequest request, HttpServletResponse response)%0A                throws ServletException, IOException %7B%0A            Part p = request.getPart(%22file%22);%0A            System.out.println(p.getName());%0A            response.setStatus(HttpServletResponse.SC_CREATED);%0A            try (PrintWriter out = response.getWriter()) %7B%0A                out.print(%22OK%22);%0A            %7D%0A        %7D%0A    %7D%0A%0A%7D%0A

Add failing test for Multipart bug