@Test
    public void ensuresNewlineIsPresent() {
        SimpleCodeWriter writer = new SimpleCodeWriter();
        writer.writeInline("Foo");
        writer.ensureNewline();
        writer.writeInline("Bar");
        writer.ensureNewline();
        writer.write("Baz");
        writer.ensureNewline();
        writer.write("Bam");

        assertThat(writer.toString(), equalTo("Foo\nBar\nBaz\nBam\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/SimpleCodeWriterTest.java