public function testTestCreateForWhenResolvingParameter()
{
$exception = ParameterNotFoundExceptionFactory::createForWhenResolvingParameter('foo', new Parameter('bar', 'baz'));
$this->assertEquals('Could not find the parameter "foo" when resolving "bar".', $exception->getMessage());
$this->assertEquals(0, $exception->getCode());
$this->assertNull($exception->getPrevious());
}