@Test
    public void injectsInlineSectionsThatWriteInlineWithoutInfiniteRecursion() {
        MyWriter writer = new MyWriter();
        writer.onSection(CodeInterceptor.appender(CodeSection.class, (w, section) -> w.write("DROP_TABLE1,")));
        writer.onSection(CodeInterceptor.appender(CodeSection.class, (w, section) -> w.write("DROP_TABLE2,")));
        writer.onSection(CodeInterceptor.appender(CodeSection.class, (w, section) -> w.write("DROP_TABLE3,")));
        writer.write("Name: ${L@foo|}", "");

        assertThat(writer.toString(),
                equalTo("Name: DROP_TABLE1,\n"
                        + "      DROP_TABLE2,\n"
                        + "      DROP_TABLE3,\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