@Test
	public void testAsKeySetSubToArray() {
		populateStore(-3, 3, 1, -1);

		List<Object> list = Arrays.asList(keySet.subSet(-2L, true, 2L, true).toArray());
		assertEquals(List.of(-1L, 1L), list);

		List<Object> rList = Arrays.asList(rKeySet.subSet(2L, true, -2L, true).toArray());
		assertEquals(List.of(1L, -1L), rList);
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java