@Test
public void testTraverseGraphTimeout() {

  ObjectRecord source = mockObjectRecord(mockObjectType(), "someValue");
  ObjectRecord destination = mockObjectRecord(mockObjectType(), "someOther");
  mockFact(source, destination);
  assertThrows(OperationTimeoutException.class,
          () -> handler.traverse(set(source.getId()), "while (true) {}", TraverseParams.builder().build()));
}