@Test
	public void testDuplicateComments() {
		// verify that comments are not duplicated in the paste
		// in Browser(2) select 334 through 33b
		goTo(toolTwo, 0x0334);

		makeSelection(toolTwo, programTwo, addr(programTwo, 0x0334), addr(programTwo, 0x033b));

		copyToolTwoLabels();

		// in Browser(1) go to 334
		goTo(toolOne, 0x334);

		pasteToolOne();

		String[] comments = new String[] { "Set the SP to RAM:ESAV", "RESTORE register 'DE'",
			"RESTORE register 'BC'", "RESTORE register 'A' and FLAGS", "RESTORE register 'SP'" };

		Listing listing = programOne.getListing();

		Address addr = addr(programOne, 0x334);
		for (String element : comments) {
			CodeUnit cu = listing.getCodeUnitAt(addr);
			assertEquals(element, cu.getComment(CommentType.EOL));
			assertTrue(cb.goToField(addr, EolCommentFieldFactory.FIELD_NAME, 0, 0));
			ListingTextField f = (ListingTextField) cb.getCurrentField();
			assertEquals(element, f.getText());
			addr = addr.add(1);
		}
	}
Test the plugin that deals with cut/paste comments and labels
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/clipboard/CopyPasteCommentsTest.java