@Test
	public void testFoundToTypedArray() throws IOException {
		DBCachedObjectIndex<Integer, MyObject> index = populateAndGetIndex();
		Collection<MyObject> found5 = index.get(5);

		assertEquals(Set.of(store.getObjectAt(1), store.getObjectAt(2)),
			new HashSet<>(Arrays.asList(found5.toArray(new MyObject[0]))));
		assertEquals(Set.of(store.getObjectAt(1), store.getObjectAt(2)),
			new HashSet<>(Arrays.asList(found5.toArray(new MyObject[2]))));
		assertEquals(
			new HashSet<>(
				Arrays.asList(new MyObject[] { store.getObjectAt(1), store.getObjectAt(2), null })),
			new HashSet<>(Arrays.asList(found5.toArray(new MyObject[3]))));
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java