@Test
	public void testGetValueIterator() {
		SharedRangeMapDB map = new SharedRangeMapDB(dbh, "TEST", this, true);

		// Add same entries as the testAdd used
		map.add(10, 20, 1);
		map.add(30, 40, 1);
		map.add(50, 60, 1);
		map.add(70, 80, 1);

		map.add(21, 29, 1);

		map.add(35, 55, 1);

		map.add(55, 90, 1);

		map.add(20, 30, 2);

		map.add(28, 35, 3);

		map.add(28, 35, 4);

		// Test 1
		Iterator<Field> iter = map.getValueIterator(29, 34);
		LongField[] values = new LongField[] {
			new LongField(1),
			new LongField(2),
			new LongField(3),
			new LongField(4)
		};
		int cnt = 0;
		while (iter.hasNext()) {
			++cnt;
			LongField v = (LongField) iter.next();
			if (indexOf(values, v) < 0) {
				Assert.fail("Unexpected value: " + v.getLongValue());
			}
		}
		assertEquals(values.length, cnt);

		// Test 2
		iter = map.getValueIterator(0, 20);
		values = new LongField[] {
			new LongField(1),
			new LongField(2)
		};
		cnt = 0;
		while (iter.hasNext()) {
			++cnt;
			LongField v = (LongField) iter.next();
			if (indexOf(values, v) < 0) {
				Assert.fail("Unexpected value: " + v.getLongValue());
			}
		}
		assertEquals(values.length, cnt);

		// Test 3
		iter = map.getValueIterator(89, 100);
		values = new LongField[] {
			new LongField(1)
		};
		cnt = 0;
		while (iter.hasNext()) {
			++cnt;
			LongField v = (LongField) iter.next();
			if (indexOf(values, v) < 0) {
				Assert.fail("Unexpected value: " + v.getLongValue());
			}
		}
		assertEquals(values.length, cnt);

		// Test 4
		iter = map.getValueIterator(0, 9);
		assertTrue(!iter.hasNext());

	}
Crude inspection - assumes two records will not contain the same
content.
@param map
@param ranges
@param mapRangeToValue (from is rangeKey, to is value)
@throws IOException
Ghidra/Features/Base/src/test.slow/java/ghidra/program/database/util/SharedRangeMapDBTest.java