@Test
	public void testRemoveSame() throws Exception {

		final String address = "0x100";

		mtf.initialize("NotepadMergeListingTest", new MergeProgramModifier() {

			@Override
			public void initializeProgram(MergeProgram program) throws Exception {
				program.addMemory("memory", "0x0", 0x200);

				program.setBookmark(address, BookmarkType.ANALYSIS, "Cat1", "Test");
			}

			@Override
			public void modifyLatest(MergeProgram program) throws Exception {
				program.removeBookmark(address, BookmarkType.ANALYSIS);
			}

			@Override
			public void modifyPrivate(MergeProgram program) throws Exception {
				program.removeBookmark(address, BookmarkType.ANALYSIS);
			}
		});

		executeMerge(ASK_USER);
		waitForMergeCompletion();

		BookmarkManager bookMgr = resultProgram.getBookmarkManager();
		Bookmark[] bookmarks;
		bookmarks = bookMgr.getBookmarks(addr(address));
		assertEquals(0, bookmarks.length);
	}
Test the merge of Note Bookmarks in the versioned program's listing.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/BookmarkMergerNoteTest.java