private void doSwingMultilinePasteTest(List<String> multiLineTestValues) throws IOException {
		// simulates what happens during a paste when multi-line string with
		// "\n"s is pasted.
		runSwingLater(() -> {
			try {
				String multiLineString = StringUtils.join(multiLineTestValues, "\n") + '\n';
				inputDoc.insertString(0, multiLineString, null);
			}
			catch (BadLocationException e) {
				// ignore
			}
		});

		for (String expectedValue : multiLineTestValues) {
			String actualValue = reader.readLine();
			assertEquals(expectedValue, actualValue);
		}
	}
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