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

		assertEquals(0, map.subMap(0L, true, 0L, false).values().toArray().length);

		List<Long> list = new ArrayList<>();
		for (Object o : map.tailMap(0L, true).values().toArray()) {
			list.add(((MyObject) o).getKey());
		}
		assertEquals(List.of(1L, 3L), list);

		List<Long> rList = new ArrayList<>();
		for (Object o : rMap.tailMap(0L, true).values().toArray()) {
			rList.add(((MyObject) o).getKey());
		}
		assertEquals(List.of(-1L, -3L), rList);
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java