@Test
public void testToCriteriaWithDestinationObject() {

  FactRecord record = new FactRecord()
          .setTypeID(UUID.randomUUID())
          .setOriginID(UUID.randomUUID())
          .setOrganizationID(UUID.randomUUID())
          .setAccessMode(FactRecord.AccessMode.Explicit)
          .setConfidence(0.1f)
          .setDestinationObject(createObjectRecord());
  FactExistenceSearchCriteria criteria = converter.toCriteria(record);
  assertEquals(1, criteria.getObjects().size());
  assertObjectExistence(record.getDestinationObject(), criteria.getObjects().iterator().next(),
          FactExistenceSearchCriteria.Direction.FactIsSource);
}