@Test
public void testGetRequestHashModel() throws TemplateModelException {

    HttpServletRequest request = createMock(HttpServletRequest.class);
    ObjectWrapper objectWrapper = createMock(ObjectWrapper.class);
    HttpRequestHashModel requestModel = new HttpRequestHashModel(request, objectWrapper);
    expect(model.get("Request")).andReturn(requestModel);
    replay(template, model, request, objectWrapper);
    env = new Environment(template, model, writer);
    locale = Locale.ITALY;
    env.setLocale(locale);
    assertEquals(requestModel, FreemarkerRequestUtil.getRequestHashModel(env));
    verify(template, model, request, objectWrapper);
}