ICriteria criteria = query.addCriteria();
criteria.setProperty(ArticleTextProperty.INSTANCE);
criteria.setComparisonOperation(StringContainsCO.INSTANCE);
criteria.setValue("*a*");
SearchFeed feed = new SearchFeed();
feed.setQuery(query);
feed.setArticlesLimit(1);
StandardArticle article = new StandardArticle("aaa");
article.setID(1); // Make impression of that it was already saved
feed.addArticleIfMatching(article);
assertEquals("Article wasn't added.", 1, feed.getArticlesCount());
// Checking
HsqlPersistenceManager.clearFeedID(feed);
assertFalse("Article ID shouldn't be reset because the article doesn't " +
"belong to this feed.", -1 == article.getID());