### Question:
ObjectTypeInfoResolver implements Function<UUID, ObjectTypeInfoSEB> { @Override public ObjectTypeInfoSEB apply(UUID id) { if (id == null) return null; ObjectTypeEntity type = objectManager.getObjectType(id); if (type == null) return null; return ObjectTypeInfoSEB.builder() .setId(type.getId()) .setName(type.getName()) .build(); } @Inject  ObjectTypeInfoResolver(ObjectManager objectManager); @Override ObjectTypeInfoSEB apply(UUID id);  }### Answer:
@Test public void testResolveNull() { assertNull(resolver.apply(null)); }
@Test public void testResolveNoTypeFound() { UUID id = UUID.randomUUID(); assertNull(resolver.apply(id)); verify(objectManager).getObjectType(id); }
@Test public void testResolveTypeFound() { ObjectTypeEntity entity = new ObjectTypeEntity() .setId(UUID.randomUUID()) .setName("name"); when(objectManager.getObjectType(isA(UUID.class))).thenReturn(entity); ObjectTypeInfoSEB seb = resolver.apply(entity.getId()); assertNotNull(seb); assertEquals(entity.getId(), seb.getId()); assertEquals(entity.getName(), seb.getName()); verify(objectManager).getObjectType(entity.getId()); }