@Test
public void testGetType() {

    Request request = createMock(Request.class);
    ApplicationContext applicationContext = createMock(ApplicationContext.class);
    ELContext context = new ELContextImpl(resolver);
    replay(request, applicationContext);
    context.putContext(Request.class, request);
    context.putContext(ApplicationContext.class, applicationContext);
    assertNull(resolver.getType(context, new Integer(1), "whatever"));
    assertEquals("The requestScope object is not a map.", Map.class,
            resolver.getType(context, null, "requestScope"));
    assertEquals("The sessionScope object is not a map.", Map.class,
            resolver.getType(context, null, "sessionScope"));
    assertEquals("The applicationScope object is not a map.", Map.class,
            resolver.getType(context, null, "applicationScope"));
}