@Test
	public void testAddInstructions() throws Exception {

		// start selection
		// loadSelection("0x004065e1", "0x004065f2");

		// sanity check
		assertEquals(8, instructionTable.getRowCount());
		assertInstructionValue(0, "INC EDI");
		assertInstructionValue(7, "MOV dword ptr [EBP + -0x4] EAX");

		// Now create a selection to add an instruction and call 'add'
		createSelection("0x004065e6", "0x004065e6");
		pressButtonByName(component, "add");
		waitForTasks();

		// grab the rebuilt table
		instructionTable = dialog.getTablePanel().getTable();
		assertEquals(9, instructionTable.getRowCount());
		assertInstructionValue(8, "PUSH EAX");
	}
Tests that selected instructions are properly loaded into the {@link InstructionTable}.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/instructionsearch/InstructionSearchTest.java