/* Folder, Bookmark and Searchmark */
IFolder folder = fFactory.createFolder(null, null, "Folder");
folder.setProperty("key", "value");
folder.setProperty("value", "key");
IBookMark bm = fFactory.createBookMark(null, folder, new FeedLinkReference(feed.getLink()), "BookMark");
bm.setProperty("key", "value");
bm.setProperty("value", "key");
IFeed anotherFeed = fFactory.createFeed(null, URI.create("http://www.rssowl.org"));
INews news1 = fFactory.createNews(null, anotherFeed, new Date());
news1.setState(INews.State.NEW);
INews news2 = fFactory.createNews(null, anotherFeed, new Date());
news2.setState(INews.State.UNREAD);
INews news4 = fFactory.createNews(null, anotherFeed, new Date());
news4.setState(INews.State.READ);
news4.setFlagged(true);
INews news5 = fFactory.createNews(null, anotherFeed, new Date());
news5.setState(INews.State.READ);
news5.setFlagged(true);
INews news6 = fFactory.createNews(null, anotherFeed, new Date());
news6.setState(INews.State.READ);
news6.setFlagged(true);
INews news7 = fFactory.createNews(null, anotherFeed, new Date());
news7.setState(INews.State.HIDDEN);
DynamicDAO.save(anotherFeed);
bm = fFactory.createBookMark(null, folder, new FeedLinkReference(URI.create("http://www.rssowl.org")), "Other BookMark");
NewsCounter counter = DynamicDAO.getDAO(INewsCounterDAO.class).load();
NewsCounterItem item = new NewsCounterItem(1, 2, 3);
counter.put(bm.getFeedLinkReference().getLinkAsText(), item);
DynamicDAO.save(counter);
((BookMark) bm).setNewsCounter(counter);