*/
@Test
public void testProcessFeedWithUnpersistedNewsByCountThatExceedLimit() throws Exception {
long today = DateUtils.getToday().getTimeInMillis();
IFolder folder = DynamicDAO.save(fFactory.createFolder(null, null, "Root"));
IFeed feed = createFeedWithNews(new URI("http://www.url.com"), 100, 20, today - 7 * DAY, today - 6 * DAY, 0);
fFactory.createBookMark(null, folder, new FeedLinkReference(feed.getLink()), "BookMark");
DynamicDAO.save(folder);
/* Add unpersisted News */
INews news1 = fFactory.createNews(null, feed, new Date());
news1.setTitle("News #1");
news1.setState(INews.State.READ);
INews news2 = fFactory.createNews(null, feed, new Date());
news2.setTitle("News #2");
news2.setPublishDate(new Date(today - 7 * DAY));
fFactory.createNews(null, feed, new Date()).setTitle("News #3");
IBookMark bookmark = (IBookMark) folder.getMarks().get(0);
assertEquals(103, countNews(feed));
/* Preferences */
IPreferenceScope prefs1 = Owl.getPreferenceService().getEntityScope(bookmark);