### Question:
FactAclEntryRecordConverter { public FactAclEntity toEntity(FactAclEntryRecord record, UUID factID) { if (record == null) return null; return new FactAclEntity() .setFactID(factID) .setId(record.getId()) .setSubjectID(record.getSubjectID()) .setOriginID(record.getOriginID()) .setTimestamp(record.getTimestamp()); }  FactAclEntryRecord fromEntity(FactAclEntity entity); FactAclEntity toEntity(FactAclEntryRecord record, UUID factID);  }### Answer:
@Test public void testToEntityWithNullRecord() { assertNull(converter.toEntity(null, UUID.randomUUID())); }
@Test public void testToEntityWithEmptyRecord() { assertNotNull(converter.toEntity(new FactAclEntryRecord(), null)); }
@Test public void testToEntityWithFullRecord() { UUID factID = UUID.randomUUID(); FactAclEntryRecord record = new FactAclEntryRecord() .setId(UUID.randomUUID()) .setSubjectID(UUID.randomUUID()) .setOriginID(UUID.randomUUID()) .setTimestamp(123456789L); FactAclEntity entity = converter.toEntity(record, factID); assertNotNull(entity); assertEquals(factID, entity.getFactID()); assertEquals(record.getId(), entity.getId()); assertEquals(record.getSubjectID(), entity.getSubjectID()); assertEquals(record.getOriginID(), entity.getOriginID()); assertEquals(record.getTimestamp(), entity.getTimestamp()); }