@Test
	public void testContentsNamesChangedUseForAllAddMy() throws Exception {
		// Both contents changed and both names changed
		// conflict resolution = KEEP_OTHER_NAME
		setupContentsNamesChangedUseForAllTest();

		merge();

		resolveNameConflictsPanelConflict(
			"Tree named 'LatestMainTree' (Latest) conflicts with 'Another Main Tree' (Checked Out)",
			ProgramTreeMergeManager.ADD_NEW_TREE, true);
		// Use For All should handle "Tree named 'Latest Tree 3' (Latest) conflicts with 'My Tree 3' (Checked Out)".
		resolveNamePanelConflict("Latest Tree 2", "My Tree 2", ProgramTreeMergeManager.ADD_NEW_TREE,
			false);
		waitForMergeCompletion();

		// Verify results.
		Listing resultListing = resultProgram.getListing();
		assertNotNull(resultListing.getRootModule("Program Tree"));
		assertNull(resultListing.getRootModule("Main Tree"));
		assertNotNull(resultListing.getRootModule("LatestMainTree"));
		assertNotNull(resultListing.getRootModule("Another Main Tree"));
		assertNotNull(resultListing.getRootModule("Tree One"));
		assertNull(resultListing.getRootModule("Tree Two"));
		assertNotNull(resultListing.getRootModule("Latest Tree 2"));
		assertNotNull(resultListing.getRootModule("My Tree 2"));
		assertNull(resultListing.getRootModule("Tree Three"));
		assertNotNull(resultListing.getRootModule("Latest Tree 3"));
		assertNotNull(resultListing.getRootModule("My Tree 3"));

		assertNull(resultListing.getModule("Main Tree", "latest module"));
		assertNull(resultListing.getFragment("Main Tree", "frag_one"));
		assertNotNull(resultListing.getModule("LatestMainTree", "latest module"));
		assertNotNull(resultListing.getFragment("LatestMainTree", "frag_one"));
		assertNotNull(resultListing.getModule("Another Main Tree", "my new module"));
		assertNotNull(resultListing.getFragment("Another Main Tree", "my fragment"));
	}
Test the tree merger and its Use For All checkbox option.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/tree/ProgramTreeMergeManagerUseForAllTest.java