@SuppressWarnings("unlikely-arg-type")
	@Test
	public void testAsEntrySetSubRemove() {
		Set<Entry<Long, MyObject>> tailSet = entrySet.tailSet(ent(0));
		try (Transaction tid = trans()) {
			MyObject objN3 = store.create(-3);
			MyObject objP3 = store.create(3);

			assertFalse(tailSet.remove(null));
			assertFalse(tailSet.remove("Wrong type"));
			assertFalse(tailSet.contains(ImmutablePair.of("Wrong key type", objN3)));
			assertFalse(tailSet.contains(ImmutablePair.of(1L, "Wrong value type")));
			assertFalse(tailSet.contains(ImmutablePair.of(0L, objP3))); // absent key
			assertFalse(tailSet.contains(ImmutablePair.of(1L, objN3))); // wrong key
			assertFalse(tailSet.contains(ImmutablePair.of(-3L, objN3))); // out of range;
			assertTrue(tailSet.remove(ImmutablePair.of(3L, objP3)));
			assertFalse(tailSet.remove(ImmutablePair.of(3L, objP3)));

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