assertEquals(newCounter, getNewCount(feed));
}
private IBookMark createBookMark(IFeed feed) throws PersistenceException {
IModelDAO dao = NewsModel.getDefault().getPersistenceLayer().getModelDAO();
IFolder folder = dao.saveFolder(NewsModel.getDefault().getTypesFactory().createFolder(null, null, "Root"));
return dao.saveBookMark(NewsModel.getDefault().getTypesFactory().createBookMark(
null, folder, feed.getLink(), new FeedReference(feed.getId()), "BookMark"));
}
}