@Test
	public void testSortBlockType() throws Exception {

		// add a bit overlay block, live block, and an uninitialized block
		tx(program, () -> {
			memory.createBitMappedBlock(".Bit", getAddr(0), getAddr(0x01001000), 0x100, false);
			memory.createUninitializedBlock(".Uninit", getAddr(0x3000), 0x200, false);
		});

		JTableHeader header = table.getTableHeader();
		// ascending
		Rectangle rect = header.getHeaderRect(MemoryMapModel.BLOCK_TYPE);
		clickMouse(header, 1, rect.x, rect.y, 1, 0);
		MemoryBlock[] blocks = memory.getBlocks();

		String[] typeNames = new String[blocks.length];
		for (int i = 0; i < typeNames.length; i++) {
			typeNames[i] = blocks[i].getType().toString();
		}
		Arrays.sort(typeNames);

		for (int i = 0; i < typeNames.length; i++) {
			assertEquals(typeNames[i], model.getValueAt(i, MemoryMapModel.BLOCK_TYPE));
		}

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