@Test
void readSimpleError() {

    var stream = new ByteArrayInputStream(Strings.bytes("-error-message\r\n"));
    assertThatThrownBy(() -> Protocol.read(new RedisInputStream(stream)))
            .isInstanceOf(RedisException.class)
            .hasMessage("error-message");
}