@Test
	public void testGetIndexThenIterate() throws IOException {
		DBCachedObjectIndex<Integer, MyObject> index = populateAndGetIndex();

		List<MyObject> list = IterableUtils.toList(index.values());
		assertEquals(5, list.get(0).f2);
		assertEquals(5, list.get(1).f2);
		assertEquals(10, list.get(2).f2);

		List<MyObject> rList = IterableUtils.toList(index.descending().values());
		assertEquals(10, rList.get(0).f2);
		assertEquals(5, rList.get(1).f2);
		assertEquals(5, rList.get(2).f2);
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java