IBookMark bookmark = (IBookMark) folder.getMarks().get(0);
assertEquals(103, countNews(feed));
/* Preferences */
IPreferencesScope prefs1 = NewsModel.getDefault().getEntityScope(bookmark);
/* Setup Retention */
prefs1.putBoolean(DefaultPreferences.DEL_NEWS_BY_AGE_STATE, true);
prefs1.putBoolean(DefaultPreferences.DEL_NEWS_BY_COUNT_STATE, true);
prefs1.putBoolean(DefaultPreferences.DEL_READ_NEWS_STATE, true);
/* Run and Validate Retention */
prefs1.putInteger(DefaultPreferences.DEL_NEWS_BY_AGE_VALUE, 5);
prefs1.putInteger(DefaultPreferences.DEL_NEWS_BY_COUNT_VALUE, 50);
assertEquals(true, RetentionStrategy.process(bookmark, feed, -1));
assertEquals(1, countNews(feed));
}