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