public function testTestCreateNewExceptionWithFactory()
{
$exception = RecursionLimitReachedExceptionFactory::create(10, 'foo');
$this->assertEquals('Recursion limit (10 tries) reached while resolving the parameter "foo"', $exception->getMessage());
$this->assertEquals(0, $exception->getCode());
$this->assertNull($exception->getPrevious());
}