@Test
    public void canPrependAndAppendToSection() {
        CodeWriter w = CodeWriter.createDefault();
        w.onSectionPrepend("foo", () -> w.write("A"));
        w.onSection("foo", text -> {
            w.writeWithNoFormatting(text);
            w.write("C");
        });
        w.onSectionAppend("foo", () -> w.write("D"));
        w.pushState("foo").write("B").popState();

        assertThat(w.toString(), equalTo("A\nB\nC\nD\n"));
    }
\n     * This is some docs.\n     * And more docs.\n     *\n     * Foo.\n
smithy-utils/src/test/java/software/amazon/smithy/utils/CodeWriterTest.java