private Category moveCategory(Enum enummDt) throws Exception {

		DataTypeManager dtm = enummDt.getDataTypeManager();

		Category category = null;
		int txID = program.startTransaction("Test Create Category");
		try {
			Category newCategory = dtm.createCategory(new CategoryPath("/Test/Category"));
			category = dtm.getCategory(enummDt.getCategoryPath());
			newCategory.moveCategory(category, TaskMonitor.DUMMY);
		}
		finally {
			program.endTransaction(txID, true);
		}

		program.flushEvents();
		waitForSwing();

		return category;
	}
Tests for editing an Enumerated data type.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/editor/EnumEditor1Test.java