@Test
	public void testAddByteBlockWithScheme() {
		Address addr = getX08Addr(0x3000);
		command = new AddByteMappedMemoryBlockCmd(".testByte", "A Test", "new block", addr, 100,
			true, true, true, false, getX08Addr(0), new ByteMappingScheme(2, 4), false);
		assertTrue(applyCmd(x08, command));

		MemoryBlock block = x08.getMemory().getBlock(addr);
		assertNotNull(block);
		assertEquals(100, block.getSize());
		MemoryBlockSourceInfo info = block.getSourceInfos().get(0);
		assertEquals(getX08Addr(0), info.getMappedRange().get().getMinAddress());
		assertEquals(getX08Addr(197), info.getMappedRange().get().getMaxAddress());
		assertEquals(MemoryBlockType.BYTE_MAPPED, block.getType());
		assertFalse(block.isOverlay());
	}
Test for the add memory block command.
Ghidra/Features/Base/src/test/java/ghidra/app/cmd/memory/AddMemoryBlockCmdTest.java