fFactory.createBookMark(null, folderA, new FeedLinkReference(new URI("bmB")), "BM Folder A");
fFactory.createNewsBin(null, rootA, "BIN Root A");
fFactory.createNewsBin(null, folderA, "BIN Folder A");
ISearchMark smRootA = createSimpleSearchMark(rootA, "SM Root A");
ISearchMark smRootALocation = createLocationSearchMark(rootA, "SM Root A Location");
ISearchMark smFolderA = createSimpleSearchMark(folderA, "SM Folder A");
ISearchMark smFolderALocation = createLocationSearchMark(folderA, "SM Folder A Location");
rootA = DynamicDAO.save(rootA);
IFolder rootB = fFactory.createFolder(null, null, "Root B");
IFolder folderB = fFactory.createFolder(null, rootB, "Folder B");
fFactory.createBookMark(null, rootB, new FeedLinkReference(new URI("bmC")), "BM Root B");
fFactory.createBookMark(null, folderB, new FeedLinkReference(new URI("bmD")), "BM Folder B");
fFactory.createNewsBin(null, rootB, "BIN Root B");
fFactory.createNewsBin(null, folderB, "BIN Folder B");
ISearchMark smRootB = createSimpleSearchMark(rootB, "SM Root B");
ISearchMark smRootBAuthor = createAuthorSearchMark(rootB, "SM Root B Author");
ISearchMark smFolderB = createSimpleSearchMark(folderB, "SM Folder B");
ISearchMark smFolderBAuthor = createAuthorSearchMark(folderB, "SM Folder B Author");
rootB = DynamicDAO.save(rootB);
/* Start Testing */
IFolder rootACopy = fFactory.createFolder(null, null, "Root A");
IFolder folderACopy = fFactory.createFolder(null, rootACopy, "Folder A");
fFactory.createNewsBin(null, rootA, "BIN Root A");
fFactory.createNewsBin(null, folderACopy, "BIN Folder A");
ISearchMark smRootACopy = createSimpleSearchMark(rootACopy, "SM Root A");
ISearchMark smRootACopyLocation = createLocationSearchMark(rootACopy, "SM Root A Location");
ISearchMark smFolderACopy = createSimpleSearchMark(folderACopy, "SM Folder A");
ISearchMark smFolderACopyLocation = createLocationSearchMark(folderACopy, "SM Folder A Location");
IFolder rootBCopy = fFactory.createFolder(null, null, "Root B");
IFolder folderBCopy = fFactory.createFolder(null, rootBCopy, "Folder B");
fFactory.createNewsBin(null, rootB, "BIN Root B");
fFactory.createNewsBin(null, folderBCopy, "BIN Folder B");
ISearchMark smRootBCopy = createSimpleSearchMark(rootBCopy, "SM Root B");
ISearchMark smRootBAuthorCopy = createAuthorSearchMark(rootBCopy, "SM Root B Other");
ISearchMark smFolderBCopy = createSimpleSearchMark(folderBCopy, "SM Folder B");
ISearchMark smFolderBAuthorCopy = createSimpleSearchMark(folderBCopy, "SM Folder B");
IFolder rootC = fFactory.createFolder(null, null, "Root C");
IFolder folderC = fFactory.createFolder(null, rootC, "Folder C");
fFactory.createNewsBin(null, rootC, "BIN Root C");
fFactory.createNewsBin(null, folderC, "BIN Folder C");
ISearchMark smRootC = createSimpleSearchMark(rootC, "SM Root C");
ISearchMark smFolderC = createSimpleSearchMark(folderC, "SM Folder C");
assertTrue(smRootA.getId() != -1);
assertTrue(smRootALocation.getId() != -1);
assertTrue(smFolderA.getId() != -1);
assertTrue(smFolderALocation.getId() != -1);