CodeOutput extends CodeChunk implements CodeBlock { @Override public void indent() { indent.append(" "); } CodeOutput(); protected  CodeOutput(Env env, String indent, StringBuilder buffer); String toDumpString(); @Override Writer getWriter(); @Override void indent(); @Override void dedent(); @Override void print(String pattern, Object... args); @Override void println(String pattern, Object... args); @Override CodeBlock block(); CodeOutput add(CodeRenderable renderable); @Override String gensym(); String toString(); @Override void append(CharSequence csq);  }
@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"); }