/* Assert Folders, Bookmarks and Searchmarks */
List<IFolder> folders = db.query(IFolder.class);
assertEquals(folders.size(), defragmentedDb.query(IFolder.class).size());
for (IFolder folder : folders) {
Query query = defragmentedDb.query();
query.constrain(folder.getClass());
query.descend("fId").constrain(Long.valueOf(folder.getId())); //$NON-NLS-1$
List<IFolder> result = query.execute();
assertEquals(1, result.size());