@Test
public void getBytes() throws ConnectionException, IOException {

  int length = 3;
  byte[] bytes = {1, 2, 3};
  doReturn(RedisBytes.DOLLAR_BYTE).when(streamReader).readByte();
  doReturn(length).when(streamReader).readInt();
  doReturn(bytes).when(streamReader).read(length);
  byte[] actualBytes = commandResult.getBytes();
  assertArrayEquals(bytes, actualBytes);
}