@Test
	public void testDnDCopyFolder2FolderNotInView() throws Exception {
		// drag/copy a folder in the view to another folder not in the
		// view.
		// verify that the view is not affected.
		ProgramNode funcNode = root.getChild("Functions");

		// set the view to Functions
		setSelectionPath(funcNode);
		setViewPaths(funcNode);

		ProgramNode subrNode = root.getChild("Subroutines");

		// copy to Subroutines
		dragNodes_Copy(subrNode, Arrays.asList(funcNode));

		// verify the view is not affected
		assertTrue(plugin.getView().hasSameAddresses(funcNode.getModule().getAddressSet()));

		undo();
		ProgramNode node = root.getChild("Functions");
		assertTrue(plugin.getView().hasSameAddresses(node.getModule().getAddressSet()));
		redo();
		node = root.getChild("Functions");
		assertTrue(plugin.getView().hasSameAddresses(node.getModule().getAddressSet()));
	}
Tests for drag/drop/reorder for copy and move in the program tree.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/programtree/ProgramTreePlugin3Test.java