@Test
    public void injectSectionProvidesShorterWayToAddSectionHooks() {
        MyWriter writer = new MyWriter();
        writer.onSection(CodeInterceptor.appender(MyPojo.class, (w, section) -> w.write("$L", section.name)));
        writer.onSection(CodeInterceptor.appender(MyPojo.class, (w, section) -> w.write("Foo")));
        writer.onSection(CodeInterceptor.appender(MyPojo.class, (w, section) -> w.write("Bar")));
        writer.write("Name?");
        writer.injectSection(new MyPojo("Thomas", 0));

        assertThat(writer.toString(), equalTo("Name?\nThomas\nFoo\nBar\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