/**
  * @covers Veles\DataBase\Adapters\PdoAdapter::rollback
  *
  * @expectedException \Veles\DataBase\Exceptions\DbException
  */
 public function testRollbackException()
 {
     $exception_msg = 'SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer';
     $resource = $this->getMockBuilder('\\PDO')->disableOriginalConstructor()->setMethods(['rollBack'])->getMock();
     $resource->expects($this->once())->method('rollBack')->will($this->throwException(new \PDOException($exception_msg)));
     $conn = $this->getMockBuilder('\\Veles\\DataBase\\Connections\\PdoConnection')->setConstructorArgs(['master'])->setMethods(['getResource'])->getMock();
     $conn->expects($this->once())->method('getResource')->willReturn($resource);
     $pool = $this->getMockBuilder('\\Veles\\DataBase\\ConnectionPools\\ConnectionPool')->setMethods(['getConnection'])->getMock();
     $pool->expects($this->once())->method('getConnection')->willReturn($conn);
     $this->object->setPool($pool);
     $this->object->rollBack();
 }