public function testGetRouteNameForItemRouteWithNoMatchingRoute()
{
$cacheItemProphecy = $this->prophesize(CacheItemInterface::class);
$cacheItemProphecy->isHit()->willReturn(false)->shouldBeCalled();
$cacheItemPoolProphecy = $this->prophesize(CacheItemPoolInterface::class);
$cacheItemPoolProphecy->getItem(Argument::type('string'))->willReturn($cacheItemProphecy);
$cacheItemPoolProphecy->save($cacheItemProphecy)->shouldNotBeCalled();
$decoratedProphecy = $this->prophesize(RouteNameResolverInterface::class);
$decoratedProphecy->getRouteName('AppBundle\\Entity\\User', false)->willThrow(new InvalidArgumentException('No item route associated with the type "AppBundle\\Entity\\User".'))->shouldBeCalled();
$cachedRouteNameResolver = new CachedRouteNameResolver($cacheItemPoolProphecy->reveal(), $decoratedProphecy->reveal());
$cachedRouteNameResolver->getRouteName('AppBundle\\Entity\\User', false);
}