function it_should_not_idle_reconnect_on_an_authentication_operation(OperationHandler $handler, $connection, $dispatcher)
{
$operation = (new AuthenticationOperation('foo', 'bar'))->setServer('foo');
$handler->supports($operation)->willReturn(true);
$handler->setConnection($connection)->shouldBeCalled();
$handler->setEventDispatcher($dispatcher)->shouldBeCalled();
$handler->setOperationDefaults($operation)->shouldBeCalled();
$handler->execute($operation)->shouldBeCalled();
$connection->getIdleTime()->willReturn(601);
$connection->close()->shouldNotBeCalled();
$connection->connect()->shouldNotBeCalled();
$this->addHandler($handler);
$this->execute($operation);
}