@Test
	public void testDnDCodeUnits2FragNotInView() throws Exception {
		// drag code units to another fragment
		// verify that the destination fragment contains the dragged
		// code units
		ProgramNode dataNode = root.getChild(".data");
		setViewPaths(dataNode);

		AddressSet set = new AddressSet();
		set.addRange(getAddr(0x01002a9b), getAddr(0x01002aad));
		SelectionTransferData data =
			new SelectionTransferData(set, program.getDomainFile().getPathname());
		ProgramNode debugNode = root.getChild(".debug_data");

		dropSelectionOnTree(debugNode, data);

		assertTrue(debugNode.getFragment().contains(set));

		// verify that the view remains unaffected
		assertTrue(plugin.getView().hasSameAddresses(dataNode.getFragment()));
	}
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