@Test(enabled = TESTS_ENABLED)
public void testDeleteContentSource() throws Exception {
PageControl pc = PageControl.getUnlimitedInstance();
// getTransactionManager().begin();
try {
ContentSourceType type = null;
ContentSource contentSource = null;
int csTypeCount = contentSourceManager.getAllContentSourceTypes().size();
List csList = contentSourceManager.getAllContentSources(overlord, pc);
int csCount = contentSourceManager.getAllContentSources(overlord, pc).size();
// create the content source type
type = new ContentSourceType("testDel-" + RandomStringUtils.randomAlphanumeric(6));
Set<ContentSourceType> types = new HashSet<ContentSourceType>();
types.add(type);
contentSourceMetadataManager.registerTypes(types); // this blows away any previous existing types
type = contentSourceManager.getContentSourceType(type.getName());
assert type != null;
assert type.getId() > 0;
// test the getAll API
assert (csTypeCount + 1) == contentSourceManager.getAllContentSourceTypes().size();
// create the content source