WebContainer server = new WebContainer(new TestServlet());
server.start();
HttpClient httpClient = new HttpClient();
MultipartFormDataRequest req = new MultipartFormDataRequest("http://localhost:" + server.getLocalPort()+ "/");
String name = "file40k";
File file = QAUtil.createTestfile_4k();
req.addPart(name, file);
req.addPart("test1", "I wake up early and ...");
req.addPart("test2", "... saw the light");
IHttpResponse resp = httpClient.call(req);
FileInputStream fis = new FileInputStream(file);
Content content = new Content(name, file.getName(), "text/html", fis);