void () { mySimpleTest.setPrinter(myMockResettablePrinter); mySimpleTest.addLast(new Printable() { @Override public void printOn(final Printer printer) { printer.print("std out", ConsoleViewContentType.NORMAL_OUTPUT); printer.print("std err", ConsoleViewContentType.ERROR_OUTPUT); printer.print("std sys", ConsoleViewContentType.SYSTEM_OUTPUT); } }); assertAllOutputs(myMockResettablePrinter, "std out", "std err", "std sys"); }