@Test
void writeArray() throws IOException {

    var stream = new ByteArrayOutputStream();
    var outputStream = new RedisOutputStream(stream, 8192);
    Protocol.writeArray(outputStream, 3);
    outputStream.flush();
    assertThat(decode(stream.toByteArray())).isEqualTo("*3\r\n");
}