@Test
public void testCreateEdgesReturnsLoop() {

  ObjectFactBindingEntity inBinding = createInBinding(Direction.FactIsDestination);
  FactEntity.FactObjectBinding outBinding = new FactEntity.FactObjectBinding()
          .setObjectID(inBinding.getObjectID())
          .setDirection(inBinding.getDirection());
  mockObject(inBinding);
  mockFact(inBinding.getFactID(), outBinding);
  Edge edge = elementFactory.createEdges(inBinding).iterator().next();
  assertSame(edge.inVertex(), edge.outVertex());
}