void () { myConsole.print("Test1\n", ConsoleViewContentType.NORMAL_OUTPUT); myConsole.print("Test2", ConsoleViewContentType.SYSTEM_OUTPUT); myConsole.print("\b\b\b\b\b\b", ConsoleViewContentType.ERROR_OUTPUT); myConsole.flushDeferredText(); assertEquals("Test1\n", myConsole.getText()); assertMarkersEqual(getAllRangeHighlighters(), new ExpectedHighlighter(0, 6, ConsoleViewContentType.NORMAL_OUTPUT) // Test1\n ); }