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

			assertFalse(entrySet.remove(null));
			assertFalse(entrySet.remove("Wrong type"));
			assertFalse(entrySet.remove(ImmutablePair.of("Wrong key type", obj0)));
			assertFalse(entrySet.remove(ImmutablePair.of(0L, "Wrong value type")));
			assertFalse(entrySet.remove(ImmutablePair.of(0L, obj1)));
			assertTrue(entrySet.remove(ImmutablePair.of(0L, obj0)));
			assertFalse(entrySet.remove(ImmutablePair.of(0L, obj0)));

			assertFalse(store.contains(obj0));
			assertEquals(1, store.getRecordCount());
		}
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java