public function testNavigationItemEntity()
 {
     $user = new User();
     $user->setEmail('*****@*****.**');
     $values = ['title' => 'Some Title', 'url' => 'Some Url', 'position' => 'Some position', 'user' => $user];
     $item = new NavigationItem($values);
     $item->setType('test');
     $this->assertEquals($values['title'], $item->getTitle());
     $this->assertEquals($values['url'], $item->getUrl());
     $this->assertEquals($values['position'], $item->getPosition());
     $this->assertEquals($values['user'], $item->getUser());
     $this->assertEquals('test', $item->getType());
     $dateTime = new \DateTime();
     $item->setUpdatedAt($dateTime);
     $this->assertEquals($dateTime, $item->getUpdatedAt());
     $dateTime = new \DateTime();
     $item->setCreatedAt($dateTime);
     $this->assertEquals($dateTime, $item->getCreatedAt());
 }
 /**
  * {@inheritDoc}
  */
 public function getPosition()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getPosition', array());
     return parent::getPosition();
 }