}, "multipart/form-data; boundary=----WebKitFormBoundaryo6OWJFZoG8w62LBM", "UTF-8");
} finally {
in.close();
}
MultipartFormData m = new MultipartFormData(col);
try {
Assert.assertThat(col.size(), equalTo(4));
Assert.assertThat(m.getPart("name").getName(), equalTo("name"));
Assert.assertThat(m.getPart("num").getSize(), equalTo(9L));
Assert.assertThat(m.getPart("content1").getSize(), equalTo(19L));
Assert.assertThat(m.getPart("content2").getSize(), equalTo(20L));
System.out.println(m.getPart("content1").getSize());
System.out.println(m.getPart("content2").getSize());
} finally {
m.close();
}
}