@Test
	public void testMakeSelection() throws Exception {

		pressButton(search);
		waitForSwing();

		AutoTableDisassemblerModel model = plugin.getModel();
		waitForModel(model);

		assertEquals(8, model.getRowCount());

		select("00401030", "004024ac", "00403870");

		// make the selection
		JButton button = getActionButton("Make Selection");
		assertNotNull(button);
		pressButton(button);
		waitForSwing();

		CodeBrowserPlugin cbPlugin = getPlugin(tool, CodeBrowserPlugin.class);
		ProgramSelection currentSelection = cbPlugin.getCurrentSelection();

		AddressRangeIterator iter = currentSelection.getAddressRanges();
		assertNotNull(iter);

		// check each of the selected address ranges
		assertTrue(iter.hasNext());
		AddressRange ar = iter.next();
		assertEquals(program.getMinAddress().getNewAddress(0x401030), ar.getMinAddress());
		assertEquals(program.getMinAddress().getNewAddress(0x40103f), ar.getMaxAddress());

		assertTrue(iter.hasNext());
		ar = iter.next();
		assertEquals(program.getMinAddress().getNewAddress(0x4024ac), ar.getMinAddress());
		assertEquals(program.getMinAddress().getNewAddress(0x4024bb), ar.getMaxAddress());

		assertTrue(iter.hasNext());
		ar = iter.next();
		assertEquals(program.getMinAddress().getNewAddress(0x403870), ar.getMinAddress());
		assertEquals(program.getMinAddress().getNewAddress(0x403887), ar.getMaxAddress());
		assertTrue(!iter.hasNext());
	}
Tests that the offset fields in the AddressTableDialog are enabled
when they should be.
<p>
This class ensures that:
<ul>
    <li>the offset text field is enabled when there is a selection,
    <li>the auto label checkbox is enabled when there is a selection, and
    <li>the minimum offset is that of the lowest length of all the
        selected rows when there is a multiple selection.
</ul>

@since Tracker Id 488, 489, 490
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/disassembler/AutoTableDisassemblerTest.java