// make sure it can also be written afterwards.
FeedWriter feedWriter = new FeedWriter();
XMLStreamWriter writer = XMLOutputFactory.newInstance()
.createXMLStreamWriter(
new FileOutputStream("target/dump1.xml"));
feedWriter.writeFeed(writer, feed);
} catch (Exception e) {
e.printStackTrace();
fail("could not read fead.");
}