@ParameterizedTest
    @MethodSource("nestedBlocksProvider")
    public void evaluatesNestedBlocks(String line) {
        SimpleCodeWriter writer = new SimpleCodeWriter()
                .trimTrailingSpaces(false)
                .insertTrailingNewline(false);
        writer.write("${^foo}" + line
                + " ${^foo}Hi1${/foo}" + line
                + " ${^foo}${^foo}Hi2${?foo}No${/foo}${/foo}${/foo}" + line
                + " ${^foo}Hi3${/foo}" + line
                + "${/foo}");

        assertThat(writer.toString(), equalTo(" Hi1" + line + " Hi2" + line + " Hi3" + line));
    }
\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