void () { mySuite.setPrinter(myMockResettablePrinter); sendToTestProxyStdOut(mySuite, "root "); sendToTestProxyStdOut(mySimpleTest, "[child old msg] "); mySuite.addChild(mySimpleTest); sendToTestProxyStdOut(mySuite, "{child added} "); sendToTestProxyStdOut(mySimpleTest, "[child new msg]"); // printer for parent have been already set, thus new // child should immediately print himself on this printer assertStdOutput(myMockResettablePrinter, "root [child old msg] {child added} [child new msg]"); }