private void inspectRecords(SharedRangeMapDB map, IndexRange[] ranges,
			IndexRange[] mapRangeToValue) throws IOException {

		RecordIterator iter = map.rangeTable.iterator();
		int cnt = 0;
		while (iter.hasNext()) {
			++cnt;
			DBRecord rec = iter.next();
			IndexRange range =
				new IndexRange(rec.getKey(), rec.getLongValue(SharedRangeMapDB.RANGE_TO_COL));
			if (indexOf(ranges, range) < 0) {
				Assert.fail("Unexpected range: " + range.getStart() + " - " + range.getEnd());
			}
		}
		assertEquals(ranges.length, cnt);

		iter = map.mapTable.iterator();
		cnt = 0;
		while (iter.hasNext()) {
			++cnt;
			DBRecord rec = iter.next();
			IndexRange entry = new IndexRange(rec.getLongValue(SharedRangeMapDB.MAP_RANGE_KEY_COL),
				rec.getLongValue(SharedRangeMapDB.MAP_VALUE_COL));
			if (indexOf(mapRangeToValue, entry) < 0) {
				Assert.fail("Unexpected map entry: rangeKey=" + entry.getStart() + ", value=" +
					entry.getEnd());
			}
		}
		assertEquals(mapRangeToValue.length, cnt);
	}
Crude inspection - assumes two records will not contain the same
content.
@param map
@param ranges
@param mapRangeToValue (from is rangeKey, to is value)
@throws IOException
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/SharedRangeMapDBTest.java