public void testXmlJAXBPart() {
WebResource webResource = resource().path("form/xml-jaxb-part");
FormDataMultiPart mp = new FormDataMultiPart();
mp.bodyPart(new FormDataBodyPart(FormDataContentDisposition.name("bean").fileName("bean").build(),
new Bean("BEAN"),
MediaType.APPLICATION_XML_TYPE));
mp.bodyPart(new FormDataBodyPart(FormDataContentDisposition.name("string").fileName("string").build(),
"STRING"));
String s = webResource.type(MediaType.MULTIPART_FORM_DATA_TYPE).post(String.class, mp);