List<Description> descriptions = db.query(Description.class);
assertEquals(descriptions.size(), defragmentedDb.query(Description.class).size());
for (Description description : descriptions) {
Query query = defragmentedDb.query();
query.constrain(description.getClass());
query.descend("fNewsId").constrain(Long.valueOf(description.getNews().getId())); //$NON-NLS-1$
List<Description> result = query.execute();
assertEquals(1, result.size());
assertEquals(description.getValue(), result.get(0).getValue());
}