/**
  * @group disconnected
  * @expectedException Predis\NotSupportedException
  * @expectedExceptionMessage The command INFO is not allowed in replication mode
  */
 public function testThrowsExceptionOnNonSupportedCommand()
 {
     $cmd = ServerProfile::getDefault()->createCommand('info');
     $replication = new MasterSlaveReplication();
     $replication->add($this->getMockConnection('tcp://host1?alias=master'));
     $replication->add($this->getMockConnection('tcp://host2?alias=slave1'));
     $replication->getConnection($cmd);
 }