@Test
	public void testAsMapSubEntrySet() {
		populateStore(-3, -1, 1, 3);

		List<Long> list = new ArrayList<>(map.subMap(-2L, true, 2L, true)
				.entrySet()
				.stream()
				.map(Entry::getKey)
				.collect(Collectors.toList()));
		assertEquals(List.of(-1L, 1L), list);

		List<Long> rList = new ArrayList<>(rMap.subMap(2L, true, -2L, true)
				.entrySet()
				.stream()
				.map(Entry::getKey)
				.collect(Collectors.toList()));
		assertEquals(List.of(1L, -1L), rList);
	}
This exists to verify behavior in {@link #testAsValuesSubIterator()}
Ghidra/Debug/ProposedUtils/src/test/java/ghidra/util/database/DBCachedObjectStoreTest.java