@Test
public void testHeader() throws IOException {
HttpServletResponse response = mock(HttpServletResponse.class);
GZIPResponseWrapper test = new GZIPResponseWrapper(response);
test.setStatus(200);
verify(response).setStatus(200);
test.addHeader("header", "header value");
verify(response).addHeader("header", "header value");
test.addHeader("content-length", "header value2");
verify(response, never()).addHeader("content-length", "header value");
test.setIntHeader("header", 5);
verify(response).setIntHeader("header", 5);
test.setIntHeader("content-length", 4);
verify(response, never()).setIntHeader("content-length", 4);
test.setHeader("set-header", "new value");
verify(response).setHeader("set-header", "new value");
test.setHeader("content-length", "content length value");
verify(response, never()).setHeader("content-length", "content length value");
test.sendRedirect("location");
verify(response).sendRedirect("location");
test.flushBuffer();
verify(response).flushBuffer();
}