@Test
	public void testChangeMyRemoveLatest() throws Exception {

		final String address1 = "0x100";
		final String address2 = "0x110";

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

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

				program.setBookmark(address1, BookmarkType.ANALYSIS, "Found Code",
					"Original bookmark @ " + address1);
				program.setBookmark(address2, BookmarkType.ANALYSIS, "Found Code",
					"Original bookmark @ " + address2);
			}

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

			@Override
			public void modifyPrivate(MergeProgram program) throws Exception {
				program.setBookmark(address1, BookmarkType.ANALYSIS, "Found Code",
					"My bookmark @ " + address1);
				program.setBookmark(address2, BookmarkType.ANALYSIS, "Found Code",
					"My bookmark @ " + address2);
			}
		});

		executeMerge(ASK_USER);
		chooseBookmark(address1, KEEP_LATEST, false);
		chooseBookmark(address2, KEEP_MY, false);
		waitForMergeCompletion();

		noBookmark(address1, BookmarkType.ANALYSIS, "Found Code");
		checkBookmark(address2, BookmarkType.ANALYSIS, "Found Code", "My bookmark @ " + address2);
	}
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