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

		assertEquals(0, map.subMap(0L, true, 0L, false).values().toArray(new MyObject[0]).length);

		List<Long> list = Arrays.asList(map.tailMap(0L, true).values().toArray(new MyObject[0]))
				.stream()
				.map(MyObject::getKey)
				.collect(Collectors.toList());
		assertEquals(List.of(1L, 3L), list);

		List<Long> rList = Arrays.asList(rMap.tailMap(0L, true).values().toArray(new MyObject[0]))
				.stream()
				.map(MyObject::getKey)
				.collect(Collectors.toList());
		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