@Test(expected = ConnectionException.class)
public void getIntThrowsConnectionException() throws ConnectionException, IOException {

  int value = 10;
  doReturn(value).when(streamReader).readInt();
  doReturn(RedisBytes.ASTERISK_BYTE).when(streamReader).readByte();
  commandResult.getInt();
}