IFolder category1 = root.getFolders().get(0);
assertEquals("category_1", category1.getName());
assertEquals(3, category1.getMarks().size());
/* Category 1 Marks */
IBookMark category1_mark1 = (IBookMark) category1.getMarks().get(0);
assertEquals("category_1_feed_1_title", category1_mark1.getName());
assertEquals("http://www.category_1_feed_1_url.com", category1_mark1.getFeedLinkReference().getLink().toString());
assertEquals("category_1_feed_1_website", category1_mark1.getProperty(ITypeImporter.HOMEPAGE_KEY));
assertEquals("category_1_feed_1_description", category1_mark1.getProperty(ITypeImporter.DESCRIPTION_KEY));
IBookMark category1_mark2 = (IBookMark) category1.getMarks().get(1);
assertEquals("category_1_feed_2_text", category1_mark2.getName());
assertEquals("http://www.category_1_feed_2_url.com", category1_mark2.getFeedLinkReference().getLink().toString());
assertEquals("category_1_feed_2_website", category1_mark2.getProperty(ITypeImporter.HOMEPAGE_KEY));
assertEquals("category_1_feed_2_description", category1_mark2.getProperty(ITypeImporter.DESCRIPTION_KEY));
IBookMark category1_mark3 = (IBookMark) category1.getMarks().get(2);
assertEquals("category_1_feed_3_title", category1_mark3.getName());
/* Category 2 */
IFolder category2 = root.getFolders().get(1);
assertEquals("category_2", category2.getName());
assertEquals(1, category2.getFolders().size());
assertEquals(0, category2.getMarks().size());
/* Sub Category 1 */
IFolder subcategory_1 = category2.getFolders().get(0);
assertEquals("sub_category_1", subcategory_1.getName());
assertEquals(1, subcategory_1.getFolders().size());
assertEquals(2, subcategory_1.getMarks().size());
/* Sub Category 1 Marks */
IBookMark subcategory_1_mark_1 = (IBookMark) subcategory_1.getMarks().get(0);
assertEquals("sub_category_1_feed_1_title", subcategory_1_mark_1.getName());
IBookMark subcategory_1_mark_2 = (IBookMark) subcategory_1.getMarks().get(1);
assertEquals("http://www.sub_category_1_feed_2_url.com", subcategory_1_mark_2.getName());
/* Sub Sub Category 1 */
IFolder sub_subcategory_1 = subcategory_1.getFolders().get(0);
assertEquals("sub_sub_category_1", sub_subcategory_1.getName());
assertEquals(1, sub_subcategory_1.getMarks().size());
IBookMark sub_subcategory_1_mark = (IBookMark) sub_subcategory_1.getMarks().get(0);
assertEquals("sub_sub_category_1_feed_1_title", sub_subcategory_1_mark.getName());
}