public function testTestCreateNewExceptionWithFactory()
{
$exception = CircularReferenceExceptionFactory::createForParameter('foo', ['bar' => 1, 'baz' => 0]);
$this->assertEquals('Circular reference detected for the parameter "foo" while resolving ["bar", "baz"].', $exception->getMessage());
$this->assertEquals(0, $exception->getCode());
$this->assertNull($exception->getPrevious());
}