@Test
public void testToCriteriaWithFullRecord() {

  FactRecord record = new FactRecord()
          .setValue("value")
          .setTypeID(UUID.randomUUID())
          .setOriginID(UUID.randomUUID())
          .setOrganizationID(UUID.randomUUID())
          .setAccessMode(FactRecord.AccessMode.Explicit)
          .setConfidence(0.1f)
          .setInReferenceToID(UUID.randomUUID());
  FactExistenceSearchCriteria criteria = converter.toCriteria(record);
  assertEquals(record.getValue(), criteria.getFactValue());
  assertEquals(record.getTypeID(), criteria.getFactTypeID());
  assertEquals(record.getOriginID(), criteria.getOriginID());
  assertEquals(record.getOrganizationID(), criteria.getOrganizationID());
  assertEquals(record.getAccessMode().name(), criteria.getAccessMode().name());
  assertEquals(record.getConfidence(), criteria.getConfidence(), 0.0f);
  assertEquals(record.getInReferenceToID(), criteria.getInReferenceTo());
}