### Question:
TaskResolver extends ServiceTaskResolver { @Override public Object getValue(ELContext context, Object base, Object property) { Object o = super.getValue(context, base, property); if (o != null && context.isPropertyResolved()) { injectVariables(context, o, property); } return o; } TaskResolver(ServiceTaskRegistry registry); @Override Object getValue(ELContext context, Object base, Object property);  }### Answer:
@Test public void test() throws Exception { TestTask task = spy(new TestTask()); registry.register("test", task); mockVariables("var1", "var1-value"); resolver.getValue(elContext, null, "test"); assertEquals("var1-value", task.value); }