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

  doReturn(true).when(connection).isConnected();
  doNothing().when(socket).close();
  doNothing().when(redisOutputStream).flush();
  connection.close();
  verify(socket).close();
}