@SuppressWarnings("unlikely-arg-type")
	@Test
	public void testAsKeySetRemove() {
		try (Transaction tid = trans()) {
			MyObject obj = store.create(0);
			assertEquals(1, store.getRecordCount());

			assertFalse(keySet.remove(null));
			assertFalse(keySet.remove("Wrong type"));
			assertTrue(keySet.contains(0L));
			assertTrue(keySet.remove(0L));
			assertFalse(store.contains(obj));
			assertEquals(0, store.getRecordCount());
		}
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java