@@ -0,0 +1,1799 @@
+package ch.deletescape.jterm.io;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport java.io.IOException;%0Aimport java.io.OutputStream;%0Aimport java.io.PrintStream;%0A%0Aimport org.junit.Test;%0A%0Apublic class MutablePrinterTest %7B%0A  private static final String LINESEPERATOR = System.lineSeparator();%0A%0A  @Test%0A  public void printTest() %7B%0A    MockOutputstream out = new MockOutputstream();%0A    MutablePrinter printer = new MutablePrinter(new PrintStream(out));%0A    assertThat(printer.isMuted(), is(false));%0A    assertThat(printer.print(%22Test%22), is(%22Test%22));%0A    assertThat(out.sb.toString(), is(%22Test%22));%0A  %7D%0A%0A  @Test%0A  public void printlnTest() %7B%0A    MockOutputstream out = new MockOutputstream();%0A    MutablePrinter printer = new MutablePrinter(new PrintStream(out));%0A    assertThat(printer.println(%22Test%22), is(%22Test%22));%0A    assertThat(out.sb.toString(), is(%22Test%22 + LINESEPERATOR));%0A  %7D%0A%0A  @Test%0A  public void printMutedTest() %7B%0A    MockOutputstream out = new MockOutputstream();%0A    MutablePrinter printer = new MutablePrinter(new PrintStream(out));%0A    assertThat(printer.mute(true), is(false));%0A    assertThat(printer.isMuted(), is(true));%0A    assertThat(printer.print(%22Test%22), is(%22Test%22));%0A    assertThat(out.sb.toString(), is(%22%22));%0A  %7D%0A%0A  @Test%0A  public void printForcedTest() %7B%0A    MockOutputstream out = new MockOutputstream();%0A    MutablePrinter printer = new MutablePrinter(new PrintStream(out));%0A    assertThat(printer.mute(true), is(false));%0A    assertThat(printer.forced().print(%22Test%22), is(%22Test%22));%0A    assertThat(out.sb.toString(), is(%22Test%22));%0A  %7D%0A%0A  class MockOutputstream extends OutputStream %7B%0A    StringBuilder sb = new StringBuilder();%0A%0A    @Override%0A    public void write(int b) throws IOException %7B%0A      sb.append((char) b);%0A    %7D%0A%0A  %7D%0A%7D%0A

add tests for MutablePrinter