INews news = fTypesFactory.createNews(null, feed, new Date());
DynamicDAO.save(feed);
IFolder folder = fTypesFactory.createFolder(null, null, "Folder");
fTypesFactory.createBookMark(null, folder, new FeedLinkReference(feed.getLink()), "BookMark");
NewsBin bin = (NewsBin) fTypesFactory.createNewsBin(null, folder, "News Bin");
DynamicDAO.save(folder);
INews newsCopy = fTypesFactory.createNews(news, bin);
DynamicDAO.save(newsCopy);
DynamicDAO.save(bin);
/* Ensure that arrays are treated specially by db4o, don't need to delete them manually */
assertFalse(fDb.ext().isStored(bin.internalGetNewsContainer().internalGetNewsIds()));
NewsContainer newsContainer = bin.internalGetNewsContainer();
DynamicDAO.delete(bin);
assertFalse(fDb.ext().isStored(newsContainer));
}