@Test
public void testCreateBidirectionalEdge() {

  FactTypeStruct factTypeMock = mockFactType();
  ObjectTypeStruct objectTypeMock = mockObjectType();
  ObjectRecord source = mockObject(objectTypeMock);
  ObjectRecord destination = mockObject(objectTypeMock);
  // The fact record is bidirectional, and you are standing at source
  Edge edge = elementFactory.createEdge(new FactRecord()
                  .setId(UUID.randomUUID())
                  .setTypeID(factTypeMock.getId())
                  .setBidirectionalBinding(true)
                  .setDestinationObject(source)
                  .setSourceObject(destination),
          source.getId());
  assertEquals(source.getId(), edge.inVertex().id());
  assertEquals(destination.getId(), edge.outVertex().id());
}