### Question:
PlainTextPrinter implements Printer { @Override public void printMetaLine(String line) { beginOnNewLineUnlessAlreadyDoing(META_LINE); printTo(out, line); printTo(out, "\n"); } 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_meta_lines() { printer.printMetaLine("foo"); printer.printMetaLine("bar"); assertThat(output.toString(), is("foo\nbar\n")); }