@Test
    public void canPassRunnableToFormattersAndEvenCreateInlineSections() {
        CodeWriter writer = new CodeWriter();

        writer.onSection("Name", text -> {
            writer.writeInline("$L (name)", text);
        });

        writer.write("Hi, $C.", (Runnable) () -> {
            writer.pushState("Name");
            writer.writeInline("TheName");
            writer.popState();
        });

        assertThat(writer.toString(), equalTo("Hi, TheName (name).\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/CodeWriterTest.java