@Test
public void testPropagateOnOutputStreamFlush() throws IOException {

  ServletOutputStream os = responseWrapper.getOutputStream();
  verify(response).getOutputStream();
  verify(requestWrapper, never()).propagateSession();
  os.flush();
  verify(requestWrapper).propagateSession();
}