*
* @throws Exception
*/
public void testFlushingWithGzip() throws Exception {
// set up response, InternalOutputBuffer, and ByteArrayOutputStream
Response res = new Response();
InternalOutputBuffer iob = new InternalOutputBuffer(res,
Constants.DEFAULT_HTTP_HEADER_BUFFER_SIZE);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
iob.setOutputStream(bos);
res.setOutputBuffer(iob);
// set up GzipOutputFilter to attach to the InternalOutputBuffer
GzipOutputFilter gf = new GzipOutputFilter();
iob.addFilter(gf);
iob.addActiveFilter(gf);