### Question:
ObjectRecordConverter { public ObjectRecord fromEntity(ObjectEntity entity) { if (entity == null) return null; return new ObjectRecord() .setId(entity.getId()) .setTypeID(entity.getTypeID()) .setValue(entity.getValue()); }  ObjectRecord fromEntity(ObjectEntity entity); ObjectEntity toEntity(ObjectRecord record);  }### Answer:
@Test public void testFromEntityWithNullObject() { assertNull(converter.fromEntity(null)); }
@Test public void testFromEntityWithEmptyObject() { assertNotNull(converter.fromEntity(new ObjectEntity())); }
@Test public void testFromEntityWithFullObject() { ObjectEntity entity = new ObjectEntity() .setId(UUID.randomUUID()) .setTypeID(UUID.randomUUID()) .setValue("value"); ObjectRecord record = converter.fromEntity(entity); assertNotNull(record); assertEquals(entity.getId(), record.getId()); assertEquals(entity.getTypeID(), record.getTypeID()); assertEquals(entity.getValue(), record.getValue()); }