@Test
	public void testSortLength() {
		JTableHeader header = table.getTableHeader();
		// ascending
		Rectangle rect = header.getHeaderRect(MemoryMapModel.LENGTH);
		clickMouse(header, 1, rect.x, rect.y, 1, 0);
		MemoryBlock[] blocks = memory.getBlocks();
		long[] lengths = new long[blocks.length];
		for (int i = 0; i < blocks.length; i++) {
			lengths[i] = blocks[i].getSize();
		}
		Arrays.sort(lengths);
		for (int i = 0; i < lengths.length; i++) {
			assertEquals("0x" + Long.toHexString(lengths[i]),
				model.getValueAt(i, MemoryMapModel.LENGTH));
		}
	}
Basic tests for the memory map provider.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/memory/MemoryMapProvider1Test.java