@Test
	public void testCopyPasteComments() {

		// in Browser(2), select an instruction that has comments but no label
		//  (0x0326);
		Address addr = addr(programTwo, 0x0326);
		goTo(toolTwo, addr.getOffset());

		toolTwo.firePluginEvent(
			new ProgramSelectionPluginEvent("test", new ProgramSelection(addr, addr), programTwo));

		copyToolTwoLabels();

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

		pasteToolOne();

		// plate, post, and eol comments should exist now
		// in Browser(1), go to 0x182 where there is an EOL comment
		goTo(toolOne, 0x182);

		// should append EOL comment to existing comment
		pasteToolOne();

		cb.goToField(addr(programOne, 0x0182), PlateFieldFactory.FIELD_NAME, 0, 0);
		ListingTextField f = (ListingTextField) cb.getCurrentField();
		assertTrue(f.getText().indexOf("* More Plate Comments (1)") > 0);

		cb.goToField(addr(programOne, 0x0182), PostCommentFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals("More Post comments (1)", f.getText());

		cb.goToField(addr(programOne, 0x0182), EolCommentFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals("SAVE register 'I'", f.getFieldElement(0, 0).getText());
		assertEquals("More EOL comments (1)", f.getFieldElement(1, 0).getText());
	}
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