@Test
public void testPrepareAlreadyWappedRequestInSameContext() {

  HttpRequestWrapper request = mock(HttpRequestWrapper.class);
  when(request.getServletContext()).thenReturn(servletContext);
  ServletResponse response = mock(HttpServletResponse.class);
  ServletContext originalServletContext = mock(ServletContext.class);
  when(originalServletContext.getAttribute(SessionHelpers.SESSION_HELPERS)).thenReturn(new SessionHelpers());
  when(request.getServletContext()).thenReturn(originalServletContext);
  when(request.getAttribute(SessionHelpers.REQUEST_WRAPPED_ATTRIBUTE)).thenReturn(request);
  ServletRequest result = SessionHelpersFacade.prepareRequest(request, response, originalServletContext);
  assertNotNull(result);
  assertSame(request, result);
  assertTrue(result instanceof HttpRequestWrapper);
}