@Test
	public void testAsKeySetRetainAll() {
		assertFalse(keySet.retainAll(List.of()));
		try (Transaction tid = trans()) {
			MyObject obj0 = store.create(0);
			MyObject obj1 = store.create(1);
			assertFalse(keySet.retainAll(List.of(0L, 1L)));
			assertTrue(keySet.retainAll(List.of(0L)));
			assertTrue(store.contains(obj0));
			assertFalse(store.contains(obj1));
			assertFalse(keySet.retainAll(List.of(0L)));
		}
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java