@Test
	public void testChangeBlockAccess() throws Exception {
		setColumnSelected(0, MemoryMapModel.READ, false);

		assertEquals(Boolean.FALSE, model.getValueAt(0, MemoryMapModel.READ));
		undo(program);
		assertEquals(Boolean.TRUE, model.getValueAt(0, MemoryMapModel.READ));
		redo(program);
		assertEquals(Boolean.FALSE, model.getValueAt(0, MemoryMapModel.READ));

		setColumnSelected(0, MemoryMapModel.WRITE, true);

		assertEquals(Boolean.TRUE, model.getValueAt(0, MemoryMapModel.WRITE));
		undo(program);
		assertEquals(Boolean.FALSE, model.getValueAt(0, MemoryMapModel.WRITE));
		redo(program);
		assertEquals(Boolean.TRUE, model.getValueAt(0, MemoryMapModel.WRITE));

		setColumnSelected(0, MemoryMapModel.EXECUTE, false);

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