IFolder folderA = fFactory.createFolder(null, rootA, "Folder A");
fFactory.createBookMark(null, rootA, new FeedLinkReference(new URI("bmA")), "BM Root A");
fFactory.createBookMark(null, folderA, new FeedLinkReference(new URI("bmB")), "BM Folder A");
INewsBin binRootA = fFactory.createNewsBin(null, rootA, "BIN Root A");
INewsBin binFolderA = fFactory.createNewsBin(null, folderA, "BIN Folder A");
createSimpleSearchMark(rootA, "SM Root A");
createSimpleSearchMark(folderA, "SM Folder A");
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");
INewsBin binRootB = fFactory.createNewsBin(null, rootB, "BIN Root B");
INewsBin binFolderB = fFactory.createNewsBin(null, folderB, "BIN Folder B");
createSimpleSearchMark(rootB, "SM Root B");
createSimpleSearchMark(folderB, "SM Folder B");
rootB = DynamicDAO.save(rootB);
/* Start Testing */
IFolder rootACopy = fFactory.createFolder(null, null, "Root A");
IFolder folderACopy = fFactory.createFolder(null, rootACopy, "Folder A");
INewsBin binRootACopy = fFactory.createNewsBin(null, rootA, "BIN Root A");
INewsBin binFolderACopy = fFactory.createNewsBin(null, folderACopy, "BIN Folder A");
createSimpleSearchMark(rootACopy, "SM Root A");
createSimpleSearchMark(folderACopy, "SM Folder A");
IFolder rootBCopy = fFactory.createFolder(null, null, "Root B");
IFolder folderBCopy = fFactory.createFolder(null, rootBCopy, "Folder B");
INewsBin binRootBCopy = fFactory.createNewsBin(null, rootB, "BIN Root B");
INewsBin binFolderBCopy = fFactory.createNewsBin(null, folderBCopy, "BIN Folder B");
createSimpleSearchMark(rootBCopy, "SM Root B");
createSimpleSearchMark(folderBCopy, "SM Folder B");
IFolder rootC = fFactory.createFolder(null, null, "Root C");
IFolder folderC = fFactory.createFolder(null, rootC, "Folder C");
INewsBin binRootC = fFactory.createNewsBin(null, rootC, "BIN Root C");
INewsBin binFolderC = fFactory.createNewsBin(null, folderC, "BIN Folder C");
IFolder rootD = fFactory.createFolder(null, null, "Root D");
rootD.setProperty(ITypeImporter.TEMPORARY_FOLDER, true);
IFolder folderD = fFactory.createFolder(null, rootD, "Folder A");
INewsBin binRootD = fFactory.createNewsBin(null, rootD, "BIN Root A");
INewsBin binFolderD = fFactory.createNewsBin(null, folderD, "BIN Folder A");
assertTrue(binRootA.getId() != -1);
assertTrue(binFolderA.getId() != -1);
assertTrue(binRootB.getId() != -1);
assertTrue(binFolderB.getId() != -1);