while ((n = in.read()) > -1) { baos.write(n); }
assertEquals(baos.toString(), "Example <b>Atom</b>");
}
public void testEntryContentBase642() throws Exception {
Document doc = parse(baseURI.resolve("entry_content_base64_2.xml"));
Feed feed = (Feed)doc.getRoot();
Entry entry = feed.getEntries().get(0);
Content mediaContent = entry.getContentElement();
assertEquals(mediaContent.getMimeType().toString(), "application/octet-stream");
DataHandler dataHandler = mediaContent.getDataHandler();
InputStream in = (ByteArrayInputStream) dataHandler.getContent();