@Test
public void testCreateEdge() {

  FactTypeStruct factTypeMock = mockFactType();
  ObjectTypeStruct objectTypeMock = mockObjectType();
  ObjectRecord source = mockObject(objectTypeMock);
  ObjectRecord destination = mockObject(objectTypeMock);
  Edge edge = elementFactory.createEdge(new FactRecord()
          .setId(UUID.randomUUID())
          .setTypeID(factTypeMock.getId())
          .setBidirectionalBinding(false)
          .setSourceObject(source)
          .setDestinationObject(destination),
          source.getId());
  assertEquals(source.getId(), edge.inVertex().id());
  assertEquals(destination.getId(), edge.outVertex().id());
}