}
@Test
@SuppressWarnings("all")
public void testNewsDeleted() throws Exception {
NewsListener newsListener = null;
try {
IFeed feed = new Feed(new URL("inmemory://rss_2_0.xml")); //$NON-NLS-1$
feed = NewsModel.getDefault().getPersistenceLayer().getModelDAO().saveFeed(feed);
assertEquals(0, getUnreadCount(feed));
assertEquals(0, getNewCount(feed));
FeedReference feedRef = new FeedReference(feed.getId());
IBookMark bookmark = createBookMark(feed);
final int addedCounter[] = new int[] { 0 };
final int updatedCounter[] = new int[] { 0 };
final int removedCounter[] = new int[] { 0 };
newsListener = new NewsListener() {
public void newsAdded(Set<NewsEvent> events) {
addedCounter[0] += events.size();
}
public void newsDeleted(Set<NewsEvent> events) {