@Test
public void testConvertFactObjectBindingDefinitionsWithBindings() {

  FactObjectBindingDefinition request1 = new FactObjectBindingDefinition()
          .setSourceObjectType(UUID.randomUUID())
          .setDestinationObjectType(UUID.randomUUID())
          .setBidirectionalBinding(false);
  FactObjectBindingDefinition request2 = new FactObjectBindingDefinition()
          .setSourceObjectType(UUID.randomUUID())
          .setDestinationObjectType(UUID.randomUUID())
          .setBidirectionalBinding(true);
  FactTypeEntity.FactObjectBindingDefinition entity1 = new FactTypeEntity.FactObjectBindingDefinition()
          .setSourceObjectTypeID(request1.getSourceObjectType())
          .setDestinationObjectTypeID(request1.getDestinationObjectType())
          .setBidirectionalBinding(request1.isBidirectionalBinding());
  FactTypeEntity.FactObjectBindingDefinition entity2 = new FactTypeEntity.FactObjectBindingDefinition()
          .setSourceObjectTypeID(request2.getSourceObjectType())
          .setDestinationObjectTypeID(request2.getDestinationObjectType())
          .setBidirectionalBinding(request2.isBidirectionalBinding());
  assertEquals(SetUtils.set(entity1, entity2), helper.convertFactObjectBindingDefinitions(ListUtils.list(request1, request2)));
}