@Test
	public void testCustomComparitorCloseCallack() {
		final AtomicBoolean closed = new AtomicBoolean(false);
		MatchedFunctionComparisonModel model = new MatchedFunctionComparisonModel();
		model.addMatch(foo, bar);
		model.addMatch(bar, bat);
		plugin.createCustomComparison(model, () -> closed.set(true));
		waitForSwing();
		provider = waitForComponentProvider(FunctionComparisonProvider.class);
		assertEquals(model, provider.getModel());

		assertFalse(closed.get());
		runSwing(() -> provider.closeComponent());
		waitForSwing();
		assertTrue(closed.get());

	}
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