public function testTitle()
 {
     $this->item->expects($this->once())->method('setTitle')->with($this->equalTo($this->serializedTitle));
     $response = $this->getResponse();
     $repository = $this->getDefaultRepositoryMock($this->item);
     $em = $this->getEntityManager($repository);
     $listener = $this->getListener($this->factory, $this->securityContext, $em);
     $listener->onResponse($this->getEventMock($this->getRequest(), $response));
 }