/* First add some Types */
IFeed feed = fFactory.createFeed(null, new URI("http://www.feed.com/feed.xml"));
INews news1 = createNews(feed, "Foo", "http://www.news.com/news1.html", State.READ);
ICategory news1cat1 = fFactory.createCategory(null, news1);
news1cat1.setName("apple");
ILabel label1 = fFactory.createLabel(null, "work");
news1.addLabel(label1);
INews news2 = createNews(feed, " Bar", "http://www.news.com/news2.html", State.NEW);
IPerson author2 = fFactory.createPerson(null, news2);
author2.setName("Benjamin Pilazzi");
ICategory news2cat1 = fFactory.createCategory(null, news2);
news2cat1.setName("apple");
ICategory news2cat2 = fFactory.createCategory(null, news2);
news2cat2.setName("windows");
ILabel label2 = fFactory.createLabel(null, "todo");
news2.addLabel(label2);
INews news3 = createNews(feed, "Foo Bar", "http://www.news.com/news3.html", State.NEW);
IPerson author3 = fFactory.createPerson(null, news3);
author3.setName("Benjamin Pasero");
ICategory news3cat1 = fFactory.createCategory(null, news3);
news3cat1.setName("apple");
ICategory news3cat2 = fFactory.createCategory(null, news3);
news3cat2.setName("windows");
ICategory news3cat3 = fFactory.createCategory(null, news3);
news3cat3.setName("slashdot");
INews news4 = createNews(feed, null, "http://www.news.com/news4.html", State.UPDATED);
IPerson author4 = fFactory.createPerson(null, news4);
author4.setName("Pasero");
ISource source4 = fFactory.createSource(news4);
source4.setLink(new URI("http://www.source.com"));
INews news5 = createNews(feed, null, "http://www.news.com/news5.html", State.NEW);
news5.setFlagged(true);
IPerson author5 = fFactory.createPerson(null, news5);
author5.setEmail(new URI("test@rssowl.org"));
ISource source5 = fFactory.createSource(news5);
source5.setName("Source for News 5");
ICategory news5cat1 = fFactory.createCategory(null, news5);
news5cat1.setName("Apache Lucene");
ICategory news5cat2 = fFactory.createCategory(null, news5);
news5cat2.setName("Java");
DynamicDAO.save(feed);
/* Wait for Indexer */
waitForIndexer();