* @throws Exception
*/
@SuppressWarnings("nls")
@Test
public void testNoUpdateEventForDeletedChildsOfSavedParent() throws Exception {
FolderAdapter folderListener= null;
try {
IFolder root = fFactory.createFolder(null, null, "Root");
root = fDao.saveFolder(root);
IFolder folder1 = fFactory.createFolder(null, root, "Folder #1");
root = fDao.saveFolder(root);
folder1 = root.getFolders().get(0);
IFolder folder2 =fFactory.createFolder(null, root, "Folder #2");
root = fDao.saveFolder(root);
folder2 = root.getFolders().get(1);
IFeed feed = fFactory.createFeed(null, new URL("http://www.feed.com"));
fFactory.createNews(null, feed, new Date());
FeedReference feedRef = new FeedReference(fDao.saveFeed(feed).getId());
fFactory.createBookMark(null, folder1, feed.getLink(), feedRef, "BookMark");
folder1 = fDao.saveFolder(folder1);
assertEquals(1, new FeedReference(feed.getId()).resolve().getNews().size());
folderListener= new FolderAdapter() {
@Override
public void folderUpdated(Set<FolderEvent> events) {
for (FolderEvent folderEvent : events) {
IFolder folder = folderEvent.getEntity();
if (folder.getName().startsWith("Folder"))