List<CatalogSource> catalogSourceList = catalogSources.getSourceList();
assertNotNull (catalogSourceList);
assertEquals (28, catalogSourceList.size());
CatalogSource firstCatalogSource = catalogSourceList.get(0);
assertNull (firstCatalogSource.getPrimaryKey());
catalogSourcesDAO.persist(catalogSources);
Long uniqueId = catalogSources.getPrimaryKey();
assertNotNull (uniqueId);
CatalogSources persistedCatalogSources =
catalogSourcesDAO.find(uniqueId);
List<CatalogSource> persistedCatalogSourceList =
persistedCatalogSources.getSourceList();
assertNotNull (persistedCatalogSources);
assertEquals (28, persistedCatalogSourceList.size());
CatalogSource catalogSource = persistedCatalogSourceList.remove(0);
catalogSource.getPrimaryKey();
catalogSourcesDAO.merge(persistedCatalogSources);
CatalogSources mergedCatalogSources =
catalogSourcesDAO.find(uniqueId);