@Test
	public void testCustomComparison() {
		MatchedFunctionComparisonModel model = new MatchedFunctionComparisonModel();
		model.addMatch(foo, bar);
		model.addMatch(bar, bat);
		plugin.createCustomComparison(model, null);
		waitForSwing();
		provider = waitForComponentProvider(FunctionComparisonProvider.class);
		assertEquals(model, provider.getModel());

		setLeftFunction(foo);

		assertEquals(model.getFunctions(LEFT).size(), 2);
		assertTrue(model.getFunctions(LEFT).contains(foo));
		assertTrue(model.getFunctions(LEFT).contains(bar));
		assertEquals(model.getFunctions(RIGHT).size(), 1);
		assertTrue(model.getFunctions(RIGHT).contains(bar));

		setLeftFunction(bar);

		assertEquals(model.getFunctions(RIGHT).size(), 1);
		assertTrue(model.getFunctions(RIGHT).contains(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