@Test
void testSendRedirect() throws Exception {

    TestHttpServletResponse wrapped = new TestHttpServletResponse(null);
    TestServletOutputStream outputStream = new TestServletOutputStream();
    wrapped.setOutputStream(outputStream);
    outputStream.setResponse(wrapped);
    HttpServletResponseWrapper wrapper = new HttpServletResponseWrapper(wrapped);
    wrapper.sendRedirect("redirect_urL");
    assertEquals(302, wrapper.getStatus());
}