@Test
public void shouldAppendNewLineProperly() {

    ByteArrayOutputStream out = new ByteArrayOutputStream(ONE_KILO);
    ChunkedPrintWriter printWriter = new ChunkedPrintWriter(out);
    printWriter.print("Wiki");
    printWriter.println();
    printWriter.flush();
    assertThat(new String(out.toByteArray()), is("4\r\nWiki\r\n2\r\n\r\n\r\n"));
}