@Test
    public void hasSections() {
        // Setup the code writer and section interceptors.
        SimpleCodeWriter w = new SimpleCodeWriter().putContext("testing", "123");

        w.onSection("foo", text -> w.write("Yes: $L", text));
        w.onSection("foo", text -> w.write("Si: $L", text));
        w.onSection("placeholder", text -> w.write("$testing:L"));

        // Emit sections with their original values.
        w.pushState("foo").write("Original!").popState();
        w.injectSection(CodeSection.forName("placeholder"));
        w.injectSection(CodeSection.forName("empty-placeholder"));

        assertThat(w.toString(), equalTo("Si: Yes: Original!\n123\n"));
    }
\n     * This is some docs.\n     * And more docs.\n     *\n     * Foo.\n
smithy-utils/src/test/java/software/amazon/smithy/utils/SimpleCodeWriterTest.java