@Test
	public void testCopyPasteLabels() throws Exception {

		// in Program One, add MyLabel at 032a

		int transactionID = programOne.startTransaction("test");
		programOne.getSymbolTable()
				.createLabel(addr(programOne, 0x032a), "MyLabel", SourceType.USER_DEFINED);
		programOne.endTransaction(transactionID, true);

		goTo(toolTwo, 0x0326);

		// in Browser(2) select the range 0331 through 0334, (contains label RSR10)
		makeSelection(toolTwo, programTwo, addr(programTwo, 0x0331), addr(programTwo, 0x0334));

		copyToolTwoLabels();

		goTo(toolOne, 0x32a);

		pasteToolOne();

		// the label should be added
		Symbol symbol = getUniqueSymbol(programOne, "RSR10", null);
		assertNotNull(symbol);
		assertEquals(addr(programOne, 0x32a), symbol.getAddress());
		assertNotNull(getUniqueSymbol(programOne, "MyLabel", null));

		cb.goToField(addr(programOne, 0x032a), LabelFieldFactory.FIELD_NAME, 0, 0);
		ListingTextField f = (ListingTextField) cb.getCurrentField();
		assertEquals("RSR10", f.getFieldElement(0, 0).getText());
		assertEquals("MyLabel", f.getFieldElement(1, 0).getText());

		cb.goToField(addr(programOne, 0x032d), EolCommentFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals("Set the SP to RAM:ESAV", f.getText());

		undo(programOne);
		cb.goToField(addr(programOne, 0x032a), LabelFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals("MyLabel", f.getText());
		assertTrue(
			!cb.goToField(addr(programOne, 0x032d), EolCommentFieldFactory.FIELD_NAME, 0, 0));

		redo(programOne);
		cb.goToField(addr(programOne, 0x032a), LabelFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals("RSR10", f.getFieldElement(0, 0).getText());
		assertEquals("MyLabel", 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