public function testInstantiateProxy() {
$instantiator = new RealServiceInstantiator();
$instance = new \stdClass();
$container = $this
->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
$callback = function () use ($instance) {
return $instance;
};
$this
->assertSame($instance, $instantiator
->instantiateProxy($container, new Definition(), 'foo', $callback));
}