public function testGetActionParams()
 {
     $object = new ItemStub();
     $class = get_class($object);
     $expectedClass = str_replace('\\', '_', $class);
     $objectId = 123;
     $action = 'test';
     $expected = ['some_val' => 'val'];
     $this->entityIdAccessor->expects($this->once())->method('getIdentifier')->with($this->identicalTo($object))->will($this->returnValue($objectId));
     $this->entityRoutingHelper->expects($this->once())->method('encodeClassName')->with($class)->will($this->returnValue($expectedClass));
     $this->entityRoutingHelper->expects($this->once())->method('getRouteParameters')->with($expectedClass, $objectId, $action)->will($this->returnValue($expected));
     $this->assertEquals($expected, $this->twigExtension->getActionParams($object, $action));
 }