@Test
	public void testSearchSelection() throws Exception {
		final AddressSet set = new AddressSet();
		set.addRange(addr(0x100), addr(0x1000));

		// select the address set
		cbPlugin.firePluginEvent(new ProgramSelectionPluginEvent(cbPlugin.getName(),
			new ProgramSelection(set), program));

		SearchStringDialog dialog = getDialog();

		// turn off null Terminate box
		JCheckBox cb = (JCheckBox) findButton(dialog.getComponent(), "Require Null Termination");
		cb.setSelected(false);

		pressButtonByText(dialog.getComponent(), "Search");

		@SuppressWarnings("unchecked")
		StringTableProvider provider =
			((List<StringTableProvider>) getInstanceField("transientProviders", plugin)).get(0);
		StringTableModel model = (StringTableModel) getInstanceField("stringModel", provider);
		GhidraTable table = (GhidraTable) getInstanceField("table", provider);
		waitForTableModel(model);

		setAutoLabelCheckbox(provider, true);

		// test the results size
		assertEquals(4, model.getRowCount());

		// test the first and last ones
		assertEquals(addr(0x100), addressCell(model, 0));
		assertEquals(addr(0x400), addressCell(model, 3));

		// ********************** test Make Unicode String
		// select row for address 400
		Address address = addr(0x400);
		selectRows(table, address);

		// make string
		DockingAction makeStringAction =
			(DockingAction) getInstanceField("makeStringAction", provider);
		performAction(makeStringAction, true);
		waitForTableModel(model);

		// test that the string was actually made correctly
		// test that the string was actually made correctly
		Data d = program.getListing().getDataAt(addr(0x400));
		assertEquals(12, d.getLength());

		String str = (String) d.getValue();
		assertEquals("abcdef", str);

		DataType dt = d.getBaseDataType();
		assertEquals("unicode", dt.getName());

		// test that the label was made correctly
		Symbol sym = program.getSymbolTable().getPrimarySymbol(addr(0x400));
		assertEquals("u_abcdef", sym.getName());

		selectRows(table, address);
		int selectedRow = table.getSelectedRow();

		// test that the table was updated with the label and preview
		assertEquals("u_abcdef", labelCell(model, selectedRow));

		CodeUnitTableCellData value = previewCell(model, selectedRow);
		assertEquals("unicode u\"abcdef\"", value.getDisplayString());

	}
To change the template for this generated type comment go to
Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/string/StringTable_BE_Test.java