/**
  * @group disconnected
  * @expectedException InvalidArgumentException
  * @expectedExceptionMessage The specified connection is not valid
  */
 public function testThrowsErrorWhenSwitchingToUnknownConnection()
 {
     $replication = new MasterSlaveReplication();
     $replication->add($this->getMockConnection('tcp://host1?alias=master'));
     $replication->add($this->getMockConnection('tcp://host2?alias=slave1'));
     $replication->switchTo('unknown');
 }