@Test
public void testIsRequestedSessionIdFromURL() {

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