void () { ConsoleViewImpl console = myConsole; console.clear(); console.print("Hello\r", ConsoleViewContentType.NORMAL_OUTPUT); console.print("\nWorld", ConsoleViewContentType.NORMAL_OUTPUT); console.flushDeferredText(); assertEquals("Hello\nWorld", console.getText()); }