MultiPartBean bean = result.getField("bean").getValueAs(MultiPartBean.class);
assertNotNull(bean);
assertEquals("myname", bean.getName());
assertEquals("myvalue", bean.getValue());
result.cleanup();
}
@Path("/ProducesFormDataCharsetResource")
public static class ProducesFormDataCharsetResource {