@Test
	public void testChangeInitState() throws Exception {

		int transactionID = program.startTransaction("test");
		memory.createUninitializedBlock(".test", getAddr(0), 0x100, false);
		program.endTransaction(transactionID, true);
		program.flushEvents();
		waitForSwing();

		assertEquals(Boolean.FALSE, model.getValueAt(0, MemoryMapModel.INIT));
		waitForSwing();

		Rectangle rect = table.getCellRect(0, MemoryMapModel.INIT, true);
		clickMouse(table, 1, rect.x, rect.y, 2, 0);
		waitForSwing();

		NumberInputDialog dialog = waitForDialogComponent(NumberInputDialog.class);
		assertNotNull(dialog);
		invokeInstanceMethod("okCallback", dialog);
		waitForSwing();

		assertEquals(Boolean.TRUE, model.getValueAt(0, MemoryMapModel.INIT));

		undo(program);
		assertEquals(Boolean.FALSE, model.getValueAt(0, MemoryMapModel.INIT));

		redo(program);
		assertEquals(Boolean.TRUE, model.getValueAt(0, MemoryMapModel.INIT));
	}
Basic tests for the memory map provider.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/memory/MemoryMapProvider1Test.java