@Test
public void testCommitted() {

  HttpServletRequest wrappedSimple = mock(HttpServletRequest.class);
  RepositoryBackedHttpSession session = mock(RepositoryBackedHttpSession.class);
  when(session.getId()).thenReturn(SESSION_ID);
  HttpRequestWrapper wrappedHttpRequestWrapper = spy(new HttpRequestWrapper(wrappedSimple, servletContext));
  wrappedHttpRequestWrapper.session = session;
  HttpServletRequest wrappedComplex = new HttpServletRequestWrapper(wrappedHttpRequestWrapper);
  HttpRequestWrapper req = spy(new HttpRequestWrapper(wrappedComplex, servletContext));
  req.committed = true;
  req.commit();
}