@Test
    public void handlesNestedBlockAlignment() {
        SimpleCodeWriter writer = new SimpleCodeWriter()
                .trimTrailingSpaces(false)
                .insertTrailingNewline(false);
        writer.onSection("nested", writer::writeInlineWithNoFormatting);
        writer.write("Hello: ${C@nested|}",
                writer.consumer(w -> w.write(". ${C|}",
                        w.consumer(w2 -> w2.write("* Hi\n* There")))));
        String actual = writer.toString();

        assertThat(actual,
                equalTo("Hello: . * Hi\n"
                        + "         * There"));
    }
\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