@Test
	public void testCopyPasteDefaultLabel() {
		// verify default labels are not copied

		Symbol symbol = programTwo.getSymbolTable().getPrimarySymbol(addr(programTwo, 0x0331));
		assertNotNull(symbol);

		// in Browser(2), delete the label at 331 (a default label is created)
		// in Browser(2), select the code unit over range 331 through 334,
		// containing the default label.
		toolTwo.execute(new DeleteLabelCmd(addr(programTwo, 0x0331), "RSR10"), programTwo);
		symbol = programTwo.getSymbolTable().getPrimarySymbol(addr(programTwo, 0x0331));
		assertTrue(symbol.getSource() == SourceType.DEFAULT);

		goTo(toolTwo, 0x0331);

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

		copyToolTwoLabels();

		// in Browser(1), go to 032a
		goTo(toolOne, 0x32a);

		pasteToolOne();

		Namespace ns = programOne.getSymbolTable().getNamespace(addr(programOne, 0x32a));
		assertEquals(ns, programOne.getGlobalNamespace());
		Symbol[] symbols = programOne.getSymbolTable().getSymbols(addr(programOne, 0x32a));
		assertEquals(0, symbols.length);

		// should be no label at 032a
		assertTrue(!cb.goToField(addr(programOne, 0x032a), LabelFieldFactory.FIELD_NAME, 0, 0));
	}
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