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