@Test
public void testCreateEdgeWithoutGraph() {

  assertThrows(RuntimeException.class, () -> {
    FactEdge.builder()
            .setFactRecord(new FactRecord())
            .setFactType(FactTypeStruct.builder().build())
            .setInVertex(mock(Vertex.class))
            .setOutVertex(mock(Vertex.class))
            .build();
  });
}