@Test
void onByteWrapping() throws Exception
{

    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    LineWrapperOutputStream lwos = new LineWrapperOutputStream(baos, 10);
    lwos.write("123456789".getBytes());
    lwos.write("0".getBytes()[0]);
    lwos.write("12345".getBytes());
    lwos.close();
    assertThat(baos.toString(), equalTo("1234567890" + NEWLINE + "12345"));
}