@Test
void avoidWrapping() throws Exception
{

    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    LineWrapperOutputStream lwos = new LineWrapperOutputStream(baos, 10);
    lwos.write("12345".getBytes());
    lwos.write("1234567890".getBytes(),5,4);
    lwos.close();
    assertThat(baos.toString(), equalTo("123456789"));
}