List<INews> newsList = db.query(INews.class);
assertEquals(newsList.size(), defragmentedDb.query(INews.class).size());
for (INews news : newsList) {
Query query = defragmentedDb.query();
query.constrain(news.getClass());
query.descend("fId").constrain(Long.valueOf(news.getId())); //$NON-NLS-1$
List<INews> result = query.execute();
assertEquals(1, result.size());
assertEquals(news.getTitle(), result.get(0).getTitle());
}