* it appropriately to its children.
*/
@Test
public void testDeleteSearchMark() {
IFolder folder = fTypesFactory.createFolder(null, null, "Folder");
ISearchMark searchMark = fTypesFactory.createSearchMark(null, folder, "Mark");
ISearchField searchField = fTypesFactory.createSearchField(0, "SomeEntity");
ISearchCondition searchCondition = fTypesFactory.createSearchCondition(null, searchMark, searchField, SearchSpecifier.BEGINS_WITH, "value");
DynamicDAO.save(folder);
assertNotNull(DynamicDAO.load(ISearchMark.class, searchMark.getId()));
assertNotNull(DynamicDAO.load(ISearchCondition.class, searchCondition.getId()));
long searchFieldId = fDb.ext().getID(searchCondition.getField());
assertNotNull(fDb.ext().getByID(searchFieldId));
DynamicDAO.delete(searchMark);
assertNull(DynamicDAO.load(ISearchMark.class, searchMark.getId()));
assertNull(DynamicDAO.load(ISearchCondition.class, searchCondition.getId()));
assertNull(fDb.ext().getByID(searchFieldId));
}