@Test
	public void testSortStart() {
		// sort descending
		JTableHeader header = table.getTableHeader();
		Rectangle rect = header.getHeaderRect(MemoryMapModel.START);
		clickMouse(header, 1, rect.x, rect.y, 1, 0);

		MemoryBlock[] blocks = memory.getBlocks();
		ArrayList<Address> list = new ArrayList<>();
		for (MemoryBlock element : blocks) {
			list.add(element.getStart());
		}
		for (int i = 0; i < list.size(); i++) {
			int idx = list.size() - 1 - i;
			assertEquals(list.get(idx).toString(), model.getValueAt(i, MemoryMapModel.START));
		}
	}
Basic tests for the memory map provider.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/memory/MemoryMapProvider1Test.java