@Test
	public void testRecordIteratorExtents() throws IOException {

		DBRecord[] recs = null;
		recs = createOrderedRecordRange(DBTestUtils.SINGLE_SHORT, 30, 2, 1);
		Table table = dbh.getTable(table1Name);
		assertEquals(recs.length, table.getRecordCount());

		int[] indexedColumns = table.getIndexedColumns();
		assertEquals(1, indexedColumns.length);

		// Backward Range iterator
		int colIx = 0;
		Arrays.sort(recs, new RecColumnComparator(colIx));
		int recIx = recs.length - 1;
//		RecordIterator iter = table.indexIterator(colIx, recs[minIx].getField(colIx),
//								   recs[maxIx].getField(colIx), false);
		Field minField = new ShortField(Short.MIN_VALUE);
		Field maxField = new ShortField(Short.MAX_VALUE);
		RecordIterator iter = table.indexIterator(colIx, minField, maxField, false);
		while (iter.hasPrevious()) {
			DBRecord rec = iter.previous();
			assertEquals(recs[recIx--], rec);
		}
		assertEquals(recIx, -1);
	}
@see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
Ghidra/Framework/DB/src/test/java/db/DBIndexedTableTest.java