@Test
    public void writeInlineHandlesSingleNewline() {
        String result = new SimpleCodeWriter()
                .insertTrailingNewline(false)
                .writeInline("foo")
                .indent()
                .writeInline(":\nbar")
                .toString();

        assertThat(result, equalTo("foo:\n    bar"));
    }
\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