@Test
void exactWrapping() throws Exception
{

    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    LineWrapperOutputStream lwos = new LineWrapperOutputStream(baos, 10);
    lwos.write("789012345".getBytes(),4,5);
    lwos.write("67890".getBytes());
    lwos.close();
    assertThat(baos.toString(), equalTo("1234567890" + NEWLINE));
}