### Question:
ObjectTypeResponseConverter implements Function<ObjectTypeEntity, ObjectType> { @Override public ObjectType apply(ObjectTypeEntity entity) { if (entity == null) return null; return ObjectType.builder() .setId(entity.getId()) .setNamespace(namespaceConverter.apply(entity.getNamespaceID())) .setName(entity.getName()) .setValidator(entity.getValidator()) .setValidatorParameter(entity.getValidatorParameter()) .build(); } @Inject  ObjectTypeResponseConverter(NamespaceByIdResponseResolver namespaceConverter); @Override ObjectType apply(ObjectTypeEntity entity);  }### Answer:
@Test public void testConvertObjectType() { ObjectTypeEntity entity = createEntity(); assertModel(entity, converter.apply(entity)); }
@Test public void testConvertNullReturnsNull() { assertNull(converter.apply(null)); }