private Program buildProgram(String programName) throws Exception {
		ProgramBuilder builder = new ProgramBuilder(programName, ProgramBuilder._TOY);
		MemoryBlock[] blocks = new MemoryBlock[5];
		blocks[0] = builder.createMemory(".text", Long.toHexString(0x1001000), 0x6600);
		blocks[1] = builder.createMemory(".data", Long.toHexString(0x1008000), 0x600);
		blocks[2] = builder.createMemory(".rsrc", Long.toHexString(0x100A000), 0x5400);
		blocks[3] = builder.createMemory(".bound_import_table", Long.toHexString(0xF0000248), 0xA8);
		blocks[4] = builder.createMemory(".debug_data", Long.toHexString(0xF0001300), 0x1C);

		Program newProgram = builder.getProgram();
		int transactionID = newProgram.startTransaction("Test Transaction");
		for (MemoryBlock b : blocks) {
			b.setSourceName("test");
			b.setComment("comment (1)");
		}
		blocks[0].setExecute(true);
		blocks[3].setComment("Bound Import Table Data");
		blocks[4].setComment("Debug Data");
		newProgram.endTransaction(transactionID, true);

		return newProgram;
	}
Basic tests for the memory map provider.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/memory/MemoryMapProvider1Test.java