@Test
public void testToEntityWithSourceObject() {

  FactRecord record = new FactRecord().setSourceObject(createObjectRecord());
  FactEntity entity = converter.toEntity(record);
  assertEquals(1, entity.getBindings().size());
  assertEquals(record.getSourceObject().getId(), entity.getBindings().get(0).getObjectID());
  assertEquals(Direction.FactIsDestination, entity.getBindings().get(0).getDirection());
}