feed.addNews(news4);
feed.addNews(news5);
feed.addNews(news6);
feed.addNews(news7);
NewsEvent event1 = new NewsEvent(news1, news2, true);
assertEquals(false, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
event1 = new NewsEvent(news1, news3, true);
assertEquals(true, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
event1 = new NewsEvent(news1, news4, true);
assertEquals(true, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
event1 = new NewsEvent(news4, news1, true);
assertEquals(true, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
event1 = new NewsEvent(news5, news6, true);
assertEquals(true, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
event1 = new NewsEvent(news6, news5, true);
assertEquals(true, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
event1 = new NewsEvent(news7, news4, true);
assertEquals(true, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
event1 = new NewsEvent(news4, news7, true);
assertEquals(true, CoreUtils.isCategoryChange(new HashSet<NewsEvent>(Arrays.asList(new NewsEvent[] { event1 }))));
}