@Test
	public void testProcessingOnSelectionChanged() throws Exception {
		openProgram("notepad");

		tool.showComponentProvider(componentProvider, true);
		waitForSwing();

		// the Java component that is our display for the plugin
		JList<?> list = (JList<?>) getInstanceField("contentList", componentProvider);
		ListModel<?> listContents = list.getModel();

		// make sure that nothing happens on a single-selection
		plugin.processEvent(createProgramSelectionEvent(false));

		assertTrue("The list is not the same after processing a " + "single-selection event.",
			compareListData(listContents, list.getModel()));

		// make sure that the component display is cleared when there is a
		// multiple-selection
		plugin.processEvent(createProgramSelectionEvent(true));

		assertTrue(
			"The list content did not change after processing a " + "multiple-selection event.",
			!compareListData(listContents, list.getModel()));
	}
Tests the plugins response to {@link ProgramSelectionPluginEvent}s.

@throws Exception If there is a problem opening the program.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/disassembler/DisassembledViewPluginTest.java