### Question:
AclEntryConverter implements Function<FactAclEntryRecord, AclEntrySEB> { @Override public AclEntrySEB apply(FactAclEntryRecord record) { if (record == null) return null; return AclEntrySEB.builder() .setId(record.getId()) .setSubject(subjectResolver.apply(record.getSubjectID())) .setOrigin(originResolver.apply(record.getOriginID())) .setTimestamp(record.getTimestamp()) .build(); } @Inject  AclEntryConverter(SubjectInfoResolver subjectResolver, OriginInfoResolver originResolver); @Override AclEntrySEB apply(FactAclEntryRecord record);  }### Answer:
@Test public void testConvertNull() { assertNull(converter.apply(null)); }
@Test public void testConvertEmpty() { assertNotNull(converter.apply(new FactAclEntryRecord())); }
@Test public void testConvertFull() { FactAclEntryRecord record = new FactAclEntryRecord() .setId(UUID.randomUUID()) .setSubjectID(UUID.randomUUID()) .setOriginID(UUID.randomUUID()) .setTimestamp(123456789); AclEntrySEB seb = converter.apply(record); assertNotNull(seb); assertEquals(record.getId(), seb.getId()); assertNotNull(seb.getSubject()); assertNotNull(seb.getOrigin()); assertEquals(record.getTimestamp(), seb.getTimestamp()); verify(subjectResolver).apply(record.getSubjectID()); verify(originResolver).apply(record.getOriginID()); }