@Test
public void testStoreFactSavesFactObjectBindings() {

  FactEntity.FactObjectBinding binding = new FactEntity.FactObjectBinding()
          .setObjectID(UUID.randomUUID())
          .setDirection(Direction.BiDirectional);
  FactEntity entity = new FactEntity()
          .setId(UUID.randomUUID())
          .addBinding(binding);
  when(factRecordConverter.toEntity(notNull())).thenReturn(entity);
  dao.storeFact(new FactRecord());
  verify(objectManager).saveObjectFactBinding(argThat(b -> {
    assertEquals(binding.getObjectID(), b.getObjectID());
    assertEquals(binding.getDirection(), b.getDirection());
    assertEquals(entity.getId(), b.getFactID());
    return true;
  }));
}