@Test(timeout = 20000)
	public void testInputStream_CloseStreamBeforeReading() throws Exception {

		ip.getStdin().close();

		assertNull(reader.readLine());	// should always get NULL results because stream is now 'closed'
		assertNull(reader.readLine());	//    "     "

		ip.stdin.addText("test_while_closed\n");	// text added after close shouldn't be preserved
		assertNull(reader.readLine());	// should always get NULL results because stream is now 'closed'
		ip.clear();						// stream should now be open again
		doBackgroundTriggerTextTest(List.of("test2", "abc456"));
	}
Test the InterpreterPanel/InterpreterConsole's stdIn InputStream handling by 
manually creating a JFrame (while a regular Ghidra tool is running)
to host the panel in.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/interpreter/InterpreterPanelTest.java