ELContextImpl extends ELContext { public void setVariableMapper(VariableMapper variableMapper) { this.variableMapper = variableMapper; } ELContextImpl(ELResolver resolver); @Override ELResolver getELResolver(); @Override FunctionMapper getFunctionMapper(); @Override VariableMapper getVariableMapper(); void setFunctionMapper(FunctionMapper functionMapper); void setVariableMapper(VariableMapper variableMapper);  }
@Test public void testSetVariableMapper() { VariableMapper variableMapper = createMock(VariableMapper.class); replay(resolver, variableMapper); context.setVariableMapper(variableMapper); assertEquals(variableMapper, context.getVariableMapper()); verify(resolver, variableMapper); }