public void testClientMultiFile2() throws Exception {
WebContainer server = new WebContainer(new TestServlet());
server.start();
HttpClient httpClient = new HttpClient();
MultipartFormDataRequest req = new MultipartFormDataRequest("http://localhost:" + server.getLocalPort()+ "/");
String name1 = "file4k";
File file1 = File.createTempFile("test", "tmp");
FileWriter fw = new FileWriter(file1);
fw.write("0123456789");
fw.close();
String name2 = "file40k";
File file2 = QAUtil.createTestfile_40k();
req.addPart(name1, file1);
req.addPart(name2, file2);
IHttpResponse resp = httpClient.call(req);
String body = resp.getBody().toString();
Assert.assertTrue(body.contains("name=file4k"));
Assert.assertTrue(body.contains("name=file40k"));
Assert.assertEquals(200, resp.getStatus());
file1.delete();
file2.delete();
httpClient.close();
server.stop();
}