/**
  * @expectedException CassandraConnectionClosedException
  */
 public function testGetClientThrowsExceptionIfConnectionClosed()
 {
     $connection = $this->cassandra->getConnection();
     $client = $connection->getClient();
     if (!$client instanceof cassandra_CassandraClient) {
         $this->fail('Instance of CassandraClient expected');
     }
     $this->cassandra->closeConnections();
     $connection->getClient();
 }