*/
@Test
public void testProcessFolderByAgeAndCountAndState() throws Exception {
long today = DateUtils.getToday().getTimeInMillis();
IFolder folder = DynamicDAO.save(fFactory.createFolder(null, null, "Root"));
IFeed feed1 = createFeedWithNews(new URI("http://www.url1.com"), 100, 0, today - DAY, today + 5 * HOUR, 0);
fFactory.createBookMark(null, folder, new FeedLinkReference(feed1.getLink()), "BookMark1");
IFeed feed2 = createFeedWithNews(new URI("http://www.url2.com"), 100, 50, today - 7 * DAY, today + 8 * HOUR, 0);
fFactory.createBookMark(null, folder, new FeedLinkReference(feed2.getLink()), "BookMark2");
IFeed feed3 = createFeedWithNews(new URI("http://www.url3.com"), 100, 100, today - 31 * DAY, today - 25 * DAY, 0);
fFactory.createBookMark(null, folder, new FeedLinkReference(feed3.getLink()), "BookMark3");
DynamicDAO.save(folder);
IBookMark bookMark1 = null, bookMark2 = null, bookMark3 = null;
List<IMark> marks = folder.getMarks();
for (IMark mark : marks) {
if (mark.getName().equals("BookMark1"))
bookMark1 = (IBookMark) mark;
else if (mark.getName().equals("BookMark2"))
bookMark2 = (IBookMark) mark;