@Test
	public void testDisplayDialog() throws Exception {
		assertTrue(searchAction.isEnabledForContext(provider.getActionContext(null)));

		SearchTextDialog dialog = getDialog();

		// verify that the comments checkbox is selected
		JCheckBox commentsCB = (JCheckBox) findButton(dialog.getComponent(), "Comments");
		assertNotNull(commentsCB);
		assertSelected(commentsCB);

		// verify that the case sensitive checkbox is not selected
		JCheckBox csCB = (JCheckBox) findButton(dialog.getComponent(), "Case Sensitive");
		assertNotNull(csCB);
		assertNotSelected(csCB);

		JCheckBox cb = (JCheckBox) findButton(dialog.getComponent(), "Search Selection");
		assertNotEnabled(cb);
		assertNotSelected(cb);
	}
Tests for the search text plugin.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/SearchTextPlugin1Test.java