@Test
    public void canComposeSetWithSection() {
        String testSection = "testSection";
        SimpleCodeWriter writer = new SimpleCodeWriter();

        writer.onSection(testSection, text -> writer.writeInline(text + "1, "));
        writer.onSection(testSection, text -> writer.writeInline(text + "2, "));
        writer.onSection(testSection, text -> writer.writeInline(text + "3"));

        writer.write("[${L@testSection}]", "");

        assertThat(writer.toString(), equalTo("[1, 2, 3]\n"));
    }
\n"
                                + " * Foo \"foo!\"\n"
                                + " *\n"
                                + " * \"baz\"!\n"
                                + " * Yap!\n"
                                + " *     This is indented, in flow of parent.\n"
                                + " *     Yap!\n"
                                + " *     Yap?\n"
                                + " *     # Has a prefix\n"
                                + " *     # Yes\n"
                                + "
smithy-utils/src/test/java/software/amazon/smithy/utils/SimpleCodeWriterTest.java