@Test
public void testIsRequestedSessionIdFromCookie() {

  HttpServletRequest wrappedSimple = mock(HttpServletRequest.class);
  HttpRequestWrapper req = spy(new HttpRequestWrapper(wrappedSimple, servletContext));
  req.setRequestedSessionId(SESSION_ID, true);
  assertTrue(req.isRequestedSessionIdFromCookie());
  assertFalse(req.isRequestedSessionIdFromURL());
  assertFalse(req.isRequestedSessionIdFromUrl());
  verify(req, never()).getSession(false);
}