### Question:
PlainTextPrinter implements Printer { @Override public void printOut(String text) { beginOnNewLineUnlessAlreadyDoing(STDOUT); printTo(out, text); } PlainTextPrinter(Appendable out); @Override void printOut(String text); @Override void printErr(String text); @Override void printMetaIncrement(String text); @Override void printMetaLine(String line);  }### Answer:
@Test public void prints_stdout() { printer.printOut("foo"); printer.printOut("bar"); assertThat(output.toString(), is("foobar")); }