@Test
public void testHistoryRecorderGet()
{
HttpServletRequest request = createMock(HttpServletRequest.class);
HttpSession session = createMock(HttpSession.class);
expect(request.getMethod()).andReturn("GET");
expect(request.getSession()).andReturn(session);
expect(request.getServletPath()).andReturn("path");
expect(request.getQueryString()).andReturn("queryString");
List<String> arrayList = new ArrayList<String>();
expect(session.getAttribute(InfrastructureKeys.GOOD_URL_HISTORY)).andReturn(arrayList);
arrayList.add("path?queryString");
session.setAttribute(InfrastructureKeys.GOOD_URL_HISTORY, arrayList);