@Test
public void testGetValue() {

    ELContext elContext = createMock(ELContext.class);
    Request request = createMock(Request.class);
    ApplicationContext applicationContext = createMock(ApplicationContext.class);
    @SuppressWarnings("rawtypes")
    Map map = createMock(Map.class);
    expect(elContext.getContext(Request.class)).andReturn(request);
    expect(elContext.getContext(ApplicationContext.class)).andReturn(applicationContext);
    expect(beanElResolver.getValue(elContext, request, "responseCommitted")).andReturn(true);
    expect(beanElResolver.getValue(elContext, applicationContext, "initParams")).andReturn(map);
    elContext.setPropertyResolved(true);
    expectLastCall().times(2);
    replay(beanElResolver, elContext, request, applicationContext, map);
    assertNull(resolver.getValue(elContext, new Integer(1), "whatever"));
    assertEquals(true, resolver.getValue(elContext, null, "responseCommitted"));
    assertEquals(map, resolver.getValue(elContext, null, "initParams"));
    verify(beanElResolver, elContext, request, applicationContext, map);
}