@Test
public void testTraverseGraphReturnVertices() throws Exception {

  ObjectRecord source = mockObjectRecord(mockObjectType(), "someValue");
  ObjectRecord destination = mockObjectRecord(mockObjectType(), "someOther");
  mockFact(source, destination);
  ResultSet<?> resultSet = handler.traverse(set(source.getId()), "g.out()", TraverseParams.builder().build());
  List<?> result = ListUtils.list(resultSet.iterator());
  assertEquals(1, result.size());
  assertTrue(result.get(0) instanceof Object);
  assertEquals(destination.getId(), ((Object) result.get(0)).getId());
}