@Test
public void testFromEntityWithBindingOfCardinalityTwoBidirectional() {

  FactEntity.FactObjectBinding source = new FactEntity.FactObjectBinding()
          .setObjectID(UUID.randomUUID())
          .setDirection(Direction.BiDirectional);
  FactEntity.FactObjectBinding destination = new FactEntity.FactObjectBinding()
          .setObjectID(UUID.randomUUID())
          .setDirection(Direction.BiDirectional);
  FactEntity entity = new FactEntity().addBinding(source).addBinding(destination);
  FactRecord record = converter.fromEntity(entity);
  assertNotNull(record.getSourceObject());
  assertNotNull(record.getDestinationObject());
  assertTrue(record.isBidirectionalBinding());
  verify(objectManager).getObject(source.getObjectID());
  verify(objectManager).getObject(destination.getObjectID());
  verify(objectRecordConverter, times(2)).fromEntity(notNull());
}