public function testCommitThrowsRuntimeException()
{
$mockedRepository = $this->getRepository();
$persistenceHandlerMock = $this->getPersistenceMock();
$persistenceHandlerMock->expects($this->once())->method('commit')->will($this->throwException(new \Exception()));
$mockedRepository->commit();
}