@Test
public void testIndent() {

    CodeOutput output = new CodeOutput();
    output.println("a");
    output.indent();
    output.println("b");
    output.dedent();
    output.println("c");
    Assert.assertEquals(output.toString(), "a\n   b\nc\n");
}