### Question:
FactCommentRecordConverter { public FactCommentEntity toEntity(FactCommentRecord record, UUID factID) { if (record == null) return null; return new FactCommentEntity() .setFactID(factID) .setId(record.getId()) .setReplyToID(record.getReplyToID()) .setOriginID(record.getOriginID()) .setComment(record.getComment()) .setTimestamp(record.getTimestamp()); }  FactCommentRecord fromEntity(FactCommentEntity entity); FactCommentEntity toEntity(FactCommentRecord record, UUID factID);  }### Answer:
@Test public void testToEntityWithNullRecord() { assertNull(converter.toEntity(null, UUID.randomUUID())); }
@Test public void testToEntityWithEmptyRecord() { assertNotNull(converter.toEntity(new FactCommentRecord(), null)); }
@Test public void testToEntityWithFullRecord() { UUID factID = UUID.randomUUID(); FactCommentRecord record = new FactCommentRecord() .setId(UUID.randomUUID()) .setReplyToID(UUID.randomUUID()) .setOriginID(UUID.randomUUID()) .setComment("Hello World!") .setTimestamp(123456789L); FactCommentEntity entity = converter.toEntity(record, factID); assertNotNull(entity); assertEquals(factID, entity.getFactID()); assertEquals(record.getId(), entity.getId()); assertEquals(record.getReplyToID(), entity.getReplyToID()); assertEquals(record.getOriginID(), entity.getOriginID()); assertEquals(record.getComment(), entity.getComment()); assertEquals(record.getTimestamp(), entity.getTimestamp()); }