@Test
    public void testCategoryAddedDeleted() throws Exception {
		// Add/delete category in My progrma

		mtf.initialize("notepad", new ProgramModifierListener() {
			
			@Override
			public void modifyLatest(ProgramDB program) {
				// Make no changes to Latest.
			}

			@Override
			public void modifyPrivate(ProgramDB program) {
				DataTypeManager dtm = program.getDataTypeManager();

				CategoryPath path = new CategoryPath("/MyCategory");
				try {
					dtm.createCategory(path);
					dtm.getRootCategory().removeCategory("MyCategory",
						TaskMonitor.DUMMY);
				}
				catch (Exception e) {
					Assert.fail("Got exception: " + e);
				}
			}
		});
		executeMerge(-1);
		DataTypeManager dtm = resultProgram.getDataTypeManager();
		assertNull(dtm.getRootCategory().getCategory("MyCategory"));
	}
Tests for the merge data type manager.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/CategoryMerge1Test.java