private ISearchMark createSearchMark(IFolder folder) {
ISearchMark mark = fTypesFactory.createSearchMark(null, folder, "SomeName");
mark.setCreationDate(new Date());
mark.setLastVisitDate(createDate());
mark.setPopularity(50);
ISearchField field1 = fTypesFactory.createSearchField(INews.STATE, INews.class);
fTypesFactory.createSearchCondition(null, mark, field1, SearchSpecifier.IS, State.NEW.toString(), false);
ISearchField field2 = fTypesFactory.createSearchField(INews.STATE, INews.class);
fTypesFactory.createSearchCondition(null, mark, field2, SearchSpecifier.IS, State.UPDATED.toString(), false);
ISearchField field3 = fTypesFactory.createSearchField(INews.STATE, INews.class);
fTypesFactory.createSearchCondition(null, mark, field3, SearchSpecifier.IS, State.UNREAD.toString(), false);
return mark;
}