Map<String, Object> sessionScope = new HashMap<String, Object>();
sessionScope.put("three", "three");
expect(request.getSessionScope()).andReturn(sessionScope).anyTimes();
replay(request, applicationContext);
VariableResolver resolver = factory.getVariableResolver("one");
assertEquals(1, resolver.getValue());
resolver = factory.getVariableResolver("two");
assertEquals(2, resolver.getValue());
resolver = factory.getVariableResolver("three");
assertEquals("three", resolver.getValue());
verify(request, applicationContext);
}