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

			assertNull(tailMap.remove(null));
			assertNull(tailMap.remove("Wrong type"));
			assertNull(tailMap.remove(-3L));
			assertEquals(objP3, tailMap.remove(3L));
			assertNull(tailMap.remove(3L));

			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