@Test
    public void writesBlocks() {
        String result = new SimpleCodeWriter()
                .openBlock("public final class $L {", "Foo")
                .openBlock("public void main(String[] args) {")
                .write("System.out.println(args[0]);")
                .closeBlock("}")
                .closeBlock("}")
                .toString();

        assertThat(result,
                equalTo("public final class Foo {\n    public void main(String[] args) {\n        System.out.println(args[0]);\n    }\n}\n"));
    }
\n     * This is some docs.\n     * And more docs.\n     *\n     * Foo.\n
smithy-utils/src/test/java/software/amazon/smithy/utils/SimpleCodeWriterTest.java