@Test
	public void testPasteListing() throws Exception {
		
		setClipBoardContents(
			"               00010004 f0 07 a0 40     060           lduw       [fp+local_res40],i0\n" + 
			"               00010008 81 c7 e0 0c     060           jmpl       i7+0xc\n" + 
			"               0001000c 81 e8 00 00                   _restore\n" +
			"          LAB_00010024                                                                                                                                           XREF[1]:      00010018  \n" + 
			"               00010024 f0 07 bf f8                   lduw       [fp+-0x8],i0\n" + 
			"               00010028 40 00 03 f6                   call       EXTERNAL:<EXTERNAL>::r                                                                                                                          undefined r()\n" + 
			"               0001002c f0 27 bf                     _stw       i0,[fp+-0xc]\n" + 
			"");
		
		ScriptTaskListener listener = env.runScript(script);

		waitForScriptCompletion(listener, 20000);

		// test that memory blocks created
		MemoryBlock[] blocks = program.getMemory().getBlocks();
		assertEquals(2,blocks.length);
		MemoryBlock block = blocks[0];
	
		assertEquals(block.getStart().getOffset(), 0x10004L);
		assertEquals(block.getEnd().getOffset(), 0x1000fL);
		Address addr = block.getStart();
		assertEquals(block.getByte(addr),(byte)0xf0);
		assertEquals(block.getByte(addr.getAddress("0x1000c")),(byte)0x81);
		assertEquals(block.getByte(addr.getAddress("0x1000f")),(byte)0x00);
		
		block = blocks[1];
		assertEquals(block.getStart().getOffset(), 0x10024L);
		assertEquals(block.getEnd().getOffset(), 0x1002eL);
		addr = block.getStart();
		assertEquals(block.getByte(addr.getAddress("0x10024")),(byte)0xf0);
		assertEquals(block.getByte(addr.getAddress("0x1002a")),(byte)0x03);
		assertEquals(block.getByte(addr.getAddress("0x1002e")),(byte)0xbf);

	}
Tests the {@code PasteCopiedListingBytesScript}, which grabs the copy buffer, and
attempts to parse out address/bytes from either listing format or hexdump format.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/PasteCopiedListingBytesScriptTest.java