@Test
	public void testWithOverlaySpaces() throws Throwable {
		createAndOpenTrace("DATA:BE:64:default");
		AddressSpace ram = tb.trace.getBaseAddressFactory().getDefaultAddressSpace();

		AddressSpace ram0;
		AddressSpace ram1;
		try (Transaction tx = tb.startTransaction()) {
			DBTraceMemoryManager mm = tb.trace.getMemoryManager();
			ram0 = mm.createOverlayAddressSpace("ram0", ram);
			ram1 = mm.createOverlayAddressSpace("ram1", ram);

			mm.createRegion("Memory[0]", 0, tb.range(ram1, 0, 0x1000),
				Set.of(TraceMemoryFlag.READ, TraceMemoryFlag.EXECUTE));
			mm.createRegion("Memory[1]", 0, tb.range(ram0, 0x1000, 0x2000),
				Set.of(TraceMemoryFlag.READ, TraceMemoryFlag.WRITE));
		}
		waitForDomainObject(tb.trace);

		traceManager.activateTrace(tb.trace);
		waitForSwing();

		assertEquals(ram0.getAddress(0x1002), listingProvider.getListingPanel()
				.getListingModel()
				.getAddressAfter(ram0.getAddress(0x1001)));
	}
Because goToDyn has to retry, it can generate many read requests. Turn off auto-read and
then flush out any pending reads, so that all the tasks can complete.
Ghidra/Test/DebuggerIntegrationTest/src/test/java/ghidra/app/plugin/core/debug/gui/listing/DebuggerListingProviderTest.java