/**
* @group disconnected
*/
public function testConstructorStartsConsumer()
{
$cmdMonitor = Profile\Factory::getDefault()->createCommand('monitor');
$connection = $this->getMock('Predis\\Connection\\NodeConnectionInterface');
$client = $this->getMock('Predis\\Client', array('createCommand', 'executeCommand'), array($connection));
$client->expects($this->once())->method('createCommand')->with('MONITOR', array())->will($this->returnValue($cmdMonitor));
$client->expects($this->once())->method('executeCommand')->with($cmdMonitor);
new MonitorConsumer($client);
}