void () { sendToTestProxyStdOut(mySimpleTest, "one "); sendToTestProxyStdOut(mySimpleTest, "two "); sendToTestProxyStdOut(mySimpleTest, "three"); myMockResettablePrinter.onNewAvailable(mySimpleTest); assertStdOutput(myMockResettablePrinter, "one two three"); myMockResettablePrinter.resetIfNecessary(); assertFalse(myMockResettablePrinter.hasPrinted()); myMockResettablePrinter.onNewAvailable(mySimpleTest); assertStdOutput(myMockResettablePrinter, "one two three"); }