### Question:
ObjectInfoConverter implements Function<ObjectRecord, ObjectInfoSEB> { @Override public ObjectInfoSEB apply(ObjectRecord record) { if (record == null) return null; return ObjectInfoSEB.builder() .setId(record.getId()) .setType(typeResolver.apply(record.getTypeID())) .setValue(record.getValue()) .build(); } @Inject  ObjectInfoConverter(ObjectTypeInfoResolver typeResolver); @Override ObjectInfoSEB apply(ObjectRecord record);  }### Answer:
@Test public void testConvertNull() { assertNull(converter.apply(null)); }
@Test public void testConvertEmpty() { assertNotNull(converter.apply(new ObjectRecord())); }
@Test public void testConvertFull() { ObjectRecord record = new ObjectRecord() .setId(UUID.randomUUID()) .setTypeID(UUID.randomUUID()) .setValue("value"); ObjectInfoSEB seb = converter.apply(record); assertNotNull(seb); assertEquals(record.getId(), seb.getId()); assertNotNull(seb.getType()); assertEquals(record.getValue(), seb.getValue()); verify(typeResolver).apply(record.getTypeID()); }