@Test
	public void testGetLongKeyRecordAtOrAfter() throws IOException {
		DBRecord[] recs = createRandomLongKeyTableRecords(null, 16000, 1);
		Arrays.sort(recs);
		Table table = dbh.getTable(table1Name);

		// At and After tests
		for (int i = 1000; i < 16000; i += 1000) {
			DBRecord rec = table.getRecordAtOrAfter(recs[i].getKey());
			assertEquals(rec.getKey(), recs[i].getKey());
			int ix = findHoleAfterLongKey(recs, i + 500);
			if (ix < 0) {
				Assert.fail("Bad test data");
			}
			rec = table.getRecordAtOrAfter(recs[ix].getKey() + 1);
			assertEquals(recs[ix + 1].getKey(), rec.getKey());
		}

		// End tests
		long lastKey = recs[15999].getKey();
		if (lastKey == Long.MAX_VALUE) {
			Assert.fail("Bad test data");
		}
		DBRecord rec = table.getRecordAtOrAfter(lastKey);
		assertEquals(rec.getKey(), lastKey);
		rec = table.getRecordAtOrAfter(lastKey + 1);
		assertNull(rec);
	}
Test key iterator.
@param testStoredDB test against a stored database if true, else test against cached database only.
@param recordCnt number of records to test
@param keyIncrement key increment, 0 = random
@param varDataSize size of variable length data fields.
@throws IOException
Ghidra/Framework/DB/src/test/java/db/DBLongKeyTableTest.java