ExternalContext externalContext = mock(ExternalContext.class);
given(this.context.getExternalContext()).willReturn(externalContext);
given(externalContext.getApplicationMap()).willReturn(this.applicationMap);
CompositeELResolver resolver = new CompositeELResolver();
resolver.add(new TestBeanResolver());
resolver.add(new BeanELResolver());
ELContext elContext = new ELContextImpl(resolver);
given(this.context.getELContext()).willReturn(elContext);
}