@Test
	public void testPasteActionEnabled() throws Exception {
		showSymbolTree();
		// cut label from a function
		// select Global; paste should be enabled
		GTreeNode fNode = rootNode.getChild(2);
		util.expandNode(fNode);
		GTreeNode gNode = fNode.getChild(1);
		util.expandNode(gNode);
		GTreeNode node = gNode.getChild(9);
		util.selectNode(node);
		performAction(cutAction, util.getSymbolTreeContext(), true);

		// move a function to a namespace
		// cut a function; select global; paste should be enabled
		GTreeNode nsParentNode = rootNode.getChild(5);
		GTreeNode nsNode = util.createObject(nsParentNode, "MyNamespace", createNamespaceAction);
		doDrag(nsNode, gNode, DnDConstants.ACTION_MOVE);

		util.waitForTree();
		flushAndWaitForTree();

		nsParentNode = rootNode.getChild(5);
		nsNode = nsParentNode.getChild(0);
		util.expandNode(nsNode);
		util.waitForTree();
		waitForSwing();
		util.waitForTree();
		gNode = nsNode.getChild(0);

		if (gNode == null) {
			if (tree.isExpanded(nsNode.getTreePath())) {
				gNode = nsNode.getChild(0);
			}
		}
		assertNotNull(gNode);

		gNode = nsNode.getChild(0);
		util.selectNode(gNode);
		assertTrue(cutAction.isEnabledForContext(util.getSymbolTreeContext()));
		performAction(cutAction, util.getSymbolTreeContext(), true);
	}
Tests for the symbol tree plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/symboltree/SymbolTreePlugin1Test.java