@SuppressWarnings("unlikely-arg-type")
	@Test
	public void testAsValuesSubRemove() {
		DBCachedObjectStoreValueSubCollection<MyObject> tailValues = map.tailMap(0L).values();
		try (Transaction tid = trans()) {
			MyObject objN3 = store.create(-3);
			MyObject objP3 = store.create(3);

			assertFalse(tailValues.remove(null));
			assertFalse(tailValues.remove("Wrong type"));
			assertFalse(tailValues.remove(objN3));
			assertTrue(tailValues.remove(objP3));
			assertFalse(tailValues.remove(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