@Test
	public void testSearchAlligned() throws Exception {

		// set up address set to select to the .data section
		final AddressSet set = new AddressSet();
		set.addRange(addr(0x100), addr(0x1000));

		waitForSwing();

		// 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);
		setAlignmentFieldValue(dialog, 4);
		pressButtonByText(dialog.getComponent(), "Search");

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

		// 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));
	}
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