@Test
    public void allowsForCustomFormatters() {
        // Setup the code writer and section interceptors.
        CodeWriter w = CodeWriter.createDefault();
        w.putFormatter('X', (text, indent) -> text.toString().replace("\n", "\n" + indent + indent));
        w.setIndentText(" ");
        w.indent(2);
        w.write("Hi.$X.Newline?", "^\n$");

        assertThat(w.toString(), equalTo("  Hi.^\n    $.Newline?\n"));
    }
\n     * This is some docs.\n     * And more docs.\n     *\n     * Foo.\n
smithy-utils/src/test/java/software/amazon/smithy/utils/CodeWriterTest.java