@Test
public void testToDocumentWithFullRecord() {

  FactRecord record = new FactRecord()
          .setId(UUID.randomUUID())
          .setTypeID(UUID.randomUUID())
          .setValue("value")
          .setInReferenceToID(UUID.randomUUID())
          .setOrganizationID(UUID.randomUUID())
          .setOriginID(UUID.randomUUID())
          .setAddedByID(UUID.randomUUID())
          .setAccessMode(FactRecord.AccessMode.Explicit)
          .setConfidence(0.1f)
          .setTrust(0.2f)
          .setTimestamp(123456789L)
          .setLastSeenTimestamp(987654321L);
  FactDocument document = converter.toDocument(record);
  assertEquals(record.getId(), document.getId());
  assertEquals(record.getTypeID(), document.getTypeID());
  assertEquals(record.getValue(), document.getValue());
  assertEquals(record.getInReferenceToID(), document.getInReferenceTo());
  assertEquals(record.getOrganizationID(), document.getOrganizationID());
  assertEquals(record.getOriginID(), document.getOriginID());
  assertEquals(record.getAddedByID(), document.getAddedByID());
  assertEquals(record.getAccessMode().name(), document.getAccessMode().name());
  assertEquals(record.getConfidence(), document.getConfidence(), 0.0f);
  assertEquals(record.getTrust(), document.getTrust(), 0.0f);
  assertEquals(record.getTimestamp(), document.getTimestamp());
  assertEquals(record.getLastSeenTimestamp(), document.getLastSeenTimestamp());
}