public class MultipartRelatedRequestEntityTest extends Assert {
@Test
public void testMultipartFormat() throws IOException {
Entry entry = new FOMEntry();
entry.setTitle("my image");
entry.addAuthor("david");
entry.setId("tag:apache.org,2008:234534344");
entry.setSummary("multipart test");
entry.setContent(new IRI("cid:234234@example.com"), "image/jpg");
RequestEntity request = new MultipartRelatedRequestEntity(entry, this.getClass().getResourceAsStream("info.png"),
"image/jpg", "asdfasdfasdf");
StringWriter sw = new StringWriter();
WriterOutputStream os = new WriterOutputStream(sw);