@Test
void writeSingleArrayGrowsExponentially() {

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