private void removeCategory(Enum enummDt) throws Exception {
		DataTypeManager dtm = enummDt.getDataTypeManager();

		int txID = program.startTransaction("Test Create Category");
		try {
			Category category = dtm.getCategory(enummDt.getCategoryPath());
			Category parentCategory = category.getParent();
			assertTrue("Did not remove category",
				parentCategory.removeCategory(category.getName(), TaskMonitor.DUMMY));
		}
		finally {
			program.endTransaction(txID, true);
		}

		program.flushEvents();
		waitForSwing();
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java