void () { myConsole.print("Hi", ConsoleViewContentType.NORMAL_OUTPUT); myConsole.print("\rMr\rSmith", ConsoleViewContentType.NORMAL_OUTPUT); myConsole.flushDeferredText(); assertEquals("Smith", myConsole.getText()); }