@Test
public void testTraverseGraphReturnError() {

  ObjectRecord source = mockObjectRecord(mockObjectType(), "someValue");
  ObjectRecord destination = mockObjectRecord(mockObjectType(), "someOther");
  mockFact(source, destination);
  assertThrows(InvalidArgumentException.class, () -> {
    handler.traverse(set(source.getId()), "g.addE('notAllowed')", TraverseParams.builder().build());
  });
}