public void test()
{
HttpServletRequest request = createStrictMock(HttpServletRequest.class);
HttpSession session = createStrictMock(HttpSession.class);
ServletContext context = createStrictMock(ServletContext.class);
WebHelperImpl wc = new WebHelperImpl(request, context);
// 1.
request.setAttribute("name1", "value1");
expect(request.getSession()).andReturn(session);
session.setAttribute("name2", "value2");
context.setAttribute("name3", "value3");
// 2.
request.removeAttribute("name1");
expect(request.getSession(false)).andReturn(session);
session.removeAttribute("name2");
context.removeAttribute("name3");
// 3.
expect(request.getSession(false)).andReturn(null);
replay(request);