### Question:
ElementFactory { public Edge getEdge(UUID id) { if (id == null) return null; return edgeCache.getIfPresent(id); } private  ElementFactory(ActGraph owner); Edge getEdge(UUID id); Edge createEdge(FactRecord factRecord, UUID sourceId); Vertex getVertex(UUID id); static Builder builder();  }### Answer:
@Test public void testGetEdgeWithNullId() { assertNull(elementFactory.getEdge(null)); }
@Test public void testGetEdgeNotCached() { assertNull(elementFactory.getEdge(UUID.randomUUID())); }