@Test
	public void testCloseProgram() throws Exception {
		Set<Function> functions = Set.of(foo, bar);
		provider = compareFunctions(functions);

		checkFunctions(LEFT, foo, foo, bar);
		checkFunctions(RIGHT, bar, foo, bar);

		runSwing(() -> plugin.programClosed(program1));
		waitForSwing();

		checkFunctions(LEFT, bar, bar);
		checkFunctions(RIGHT, bar, bar);

		runSwing(() -> plugin.programClosed(program2));
		waitForSwing();
		assertFalse(provider.isVisible());
		assertFalse(provider.isInTool());
	}
Tests for the {@link FunctionComparisonPlugin function comparison plugin}
that involve the GUI
Ghidra/Features/CodeCompare/src/main/test/ghidra/features/codecompare/plugin/CompareFunctionsProviderTest.java