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

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

		runSwing(() -> plugin.addToComparison(bat));
		waitForSwing();

		checkFunctions(LEFT, foo, foo, bar, bat);
		checkFunctions(RIGHT, bat, foo, bar, bat);
	}
Verifies that if we delete a function from the listing that is currently
being shown in a comparison provider, it will be removed from that
comparison provider
Ghidra/Features/CodeCompare/src/main/test/ghidra/features/codecompare/plugin/CompareFunctionsProviderTest.java