@Test
void writeSingleArrayMatchesWrittenSizeOnOverflow() {

    byte[] written = {10, 20, 30};
    tested.write(written, 0, written.length);
    assertThat(tested.buffer).hasSize(3);
    assertThat(tested.count).isEqualTo(3);
    assertThat(tested.buffer).startsWith(written);
}