public function testHasServiceException()
{
$previous = new \Exception('test');
$ex = new ServiceException('foo', 123, $previous);
$this->assertTrue($ex->hasServiceException());
$this->assertEquals($previous, $ex->getServiceException());
}