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

		AtomicReference<String> result = new AtomicReference<>("Non-null value");
		doBackgroundReadLine(result); // this thread will block on readLine()

		ip.getStdin().close();

		// this will be set to null when readLine() returns
		waitFor(() -> result.get() == null);

		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