@Test
void readArray() throws IOException {

    var stream = new ByteArrayInputStream(Strings.bytes("*3\r\n$1\r\n1\r\n$1\r\n2\r\n$1\r\n3\r\n"));
    Object[] response = (Object[]) Protocol.read(new RedisInputStream(stream));
    assertThat(response).containsExactly(encode("1"), encode("2"), encode("3"));
}