public function testStmtCreateWithgremlinQuery()
 {
     $queryObj = null;
     $timeElapsed = null;
     $paramsArray = null;
     $eventManager = $this->getEventManagerWithListenerExpectations(array('prePersist' => 2, 'postPersist' => 2, 'preRelationCreate' => 1, 'postRelationCreate' => 1, 'preStmtExecute' => 1, 'postStmtExecute' => 1));
     $movie = new Entity\Movie();
     $movie->setTitle('Terminator');
     $actor = new Entity\Person();
     $actor->setFirstName('Arnold');
     $movie->addActor($actor);
     $this->em->setEventManager($eventManager);
     $this->em->persist($movie);
     $this->em->flush();
     $this->em->createGremlinQuery("g.v(:movie).out('actor')")->set('movie', $movie)->getList();
 }
 /**
  * @param null $string
  * @return Query\Gremlin
  */
 protected function createGremlinQuery($string = null)
 {
     return $this->entityManager->createGremlinQuery($string);
 }